Hi Rostislav,
Yes, I do have this problem :) Thank you for the explanation. I'll try
what you suggest when I get back on this project.
Maybe we will get rid of this bug and this disturbing red error message.
Yeah, two birds with one rock!
Le 2015-01-21 09:13, Rostislav Khlebnikov a écrit :
Hi Nil,
perhaps this is a similar issue to the one I had recently. Could you
check if there is error in the log when you start your application
saying "BlueBerry Workbench not running!"?
In this case, perhaps, this thread might be of help:
http://sourceforge.net/p/mitk/mailman/mitk-users/thread/5489A34A.3090006%40kcl.ac.uk/
The idea is that your view plugin through its dependencies forces the
org.mitk.gui.qt.common plugin to be loaded, and it requires a
workbench to be already running to work correctly (and it is not
because your app plugin is not loaded yet). This definitely leads to
problems with view coordinator - not sure about ILifecycleAwarePart
though, but likely the reasoning is the same. The solution would be to
split your view plugin youto two: one with the actual view and one
with only the functionality you need in your app plugin.
Hope this helps,
Rostislav.
On 20/01/2015 18:50, Nil Goyette wrote:
Hi all,
I finally found what was breaking mitk::ILifecycleAwarePart.
MITK2014.10 is not to blame! ;)
In my *_app plugin, in the manifest_headers.cmake file, I added the
name of my *_view plugin.
set(Require-Plugin org.imeka.some_view_plugin)
because I needed a class defined there.
It turns out, you can do it, everything will work, but it disables
ILifecycleAwarePart and QmitkViewCoordinator for some reasons.
Le 2015-01-14 11:02, Nil Goyette a écrit :
Hi all,
In MITK 2014.03, I was using ILifecycleAwarePart::Visible() and
ILifecycleAwarePart::Hidden() in one of my view. I simply extended
the view with mitk::ILifecycleAwarePart and everything worked as
intented. We realized after the port to MITK 2014.10 that Visible()
and Hidden() are not called anymore.
I tried understanding what's going on and I think the /magic/ is
supposed to happen in QmitkViewCoordinator.cpp in PartHidden() and
PartVisible(), which simply try to cast the view pointer to a
mitk::ILifecycleAwarePart* and call Visible/Hidden. The problem is,
those methods are never called (I checked with a breakpoint). Do I
need to do something special other than extend
mitk::ILifecycleAwarePart?
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users