Just to kinda conclude:
The way to force load a plugin:
berry::Platform::GetCTKPlugin("PluginName")->start(ctkPlugin::START_TRANSIENT);Still I'm there's a problem: Imagine a plugin which adds context menu items, node descriptors for them and a view. Then if the activation policy is not eager - the data manager view initializes earlier than this plugin and it can't find node descriptors for context menu actions. If it is eager - we have the same problem with the QmitkCommonActivator (which I hope works fine in 2014.10). Rostislav. On 03/12/2014 15:42, Rostislav Khlebnikov wrote: > Just to make it more specific. > > The problem is that QmitkCommonActivator is started before Workbench is > created. Therefore, an error "BlueBerry Workbench not running!" is shown > and the QmitkViewCoordinator is not created. > This leads to QmitkImageNavigator not actually tracking the > opening/closing of render editor and once the display pane is closed, > user can move the navigation sliders and get a crash. > > Looks like, however, I was wrong regarding 2014.10 not helping me with > this behavior. Guess I will find a quick workaround before I do the > merge with 2014.10 - any help would be appreciated. > > Rostislav. > > On 03/12/2014 15:13, Rostislav Khlebnikov wrote: >> Hi guys, >> >> I am still working with 2014.03 release, but I doubt this has been >> changed in 2014.10, so I will ask my question. >> How can I force the plugin framework to load the plugins at start? The >> reason for this is that plugins initialize some writers and readers for >> my data types as well as some actions for the data manager - and I want >> them to be available without user having to open any views. >> I used to have plugin activation policy set to eager, but then the >> "normal" plugins were activated before my application plugin (the one >> that creates and runs workbench) which in turn led to activation of >> org.mitk.gui.qt.common which relies on workbench already being created. >> So all this led to problems when application was running. >> So I would like to have the "application plugin" force the loading of >> "normal plugins". Is there a way to do this? >> >> Thank you, >> Rostislav. >> >> ------------------------------------------------------------------------------ >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk >> _______________________________________________ >> mitk-users mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/mitk-users > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk > _______________________________________________ > mitk-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ mitk-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mitk-users
