Talk about the weirdest thing. I still don't know why it wasn't calling/activating my plug-in so I decided to do it myself
|
Code:
|
Plugin plugin = Plugin.getDefault();
if(null == plugin){
plugin = activatePlugin(Plugin.PLUGIN_ID);
}
...snip...
private Plugin activatePlugin(String pluginID) {
Bundle bundle = Platform.getBundle(pluginID);
try {
bundle.start();
} catch (BundleException e) {
// Auto-generated catch block
e.printStackTrace();
}
Application.writeToConsole("The Plug-in "+pluginID+" : "+bundle.getState());
return Plugin.getDefault();
} |
So that got it to load my plug-in. Hurray!!
So I think I'll move that method somewhere that others can use it and while I'm trying it in the debugger from a fresh re-start of the application it does not get called but the start method on the plug-in is getting called like it should of from the start.
So it seems like the plug-in registry has learned that it is supposed to load that plug-in now.
Hope this helps someone else one day,
Andrew