This may not be the answer you are exactly looking for, but you should consider calling your initialization code from the start method of your plugin activator and set the eager policy. See [1,2] for an example.
Best, Stefan [1] https://github.com/MITK/MITK/blob/master/Plugins/org.mitk.simulation/manifest_headers.cmake#L6 [2] https://github.com/MITK/MITK/blob/master/Plugins/org.mitk.simulation/src/internal/org_mitk_simulation_Activator.cpp#L85 ________________________________________ Von: Nil Goyette <nil.goye...@imeka.ca> Gesendet: Mittwoch, 30. November 2016 21:27 An: mitk-users@lists.sourceforge.net Betreff: [mitk-users] Force plugin to load Hi all, I know that we can use Perspective::CreateInitialLayout to ask a plugin to be at a specific posion and to open. This is working in MOST cases but not all. If the user opens another plugin X, stack it on the main plugin, then close the program, the app will open with plugin X in front of our main plugin, which will be inactive (You may need to do it many times if you want to see it. Without --BlueBerry.clean of course). The plugin's Activator and the view's constructor won't be called. Wathever plugins is in front of our plugin, we need to load it anyway because it loads the AUTOLOAD_WITH modules and the constructor of our view is doing important stuff. So, is there a way to force a plugin to load? Thank you for your time :) Nil ------------------------------------------------------------------------------ _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users ------------------------------------------------------------------------------ _______________________________________________ mitk-users mailing list mitk-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mitk-users