Hi Rostislav,
I have arranged it the following way:
I have implemented some IO classes and some context menu actions in seperate modules.
Then in my application plugin in my class <MyApp>_workbench_window_advisor.cpp I setup all the menu and action settings, registering additional reader and writer (I will rewrite this for 2014.10.0) and in my main of my application I call
 
sbConfig->setString(berry::Platform::ARG_PRELOAD_LIBRARY, "liborg_mitk_gui_qt_ext:0.1");
 
to have the dependant MITK libs present when loading my application plugin.  Without this call the application crashes during startup.
This call has changed its syntax though in 2014.10.0 so I will adapt this in a little while (see http://mitk.org/wiki/MITK_ReleaseNotes_2014.10 section Breaking Changes).
 
Best Regards,
Ingmar
 
 
 
Gesendet: Mittwoch, 03. Dezember 2014 um 22:58 Uhr
Von: "Rostislav Khlebnikov" <[email protected]>
An: [email protected]
Betreff: Re: [mitk-users] Forcing plugin loading
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
------------------------------------------------------------------------------
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

Reply via email to