Help, my plugin creates two instances of jedit
Submitted by Wednesday, 2 February, 2005 - 00:13
on
I am having some strange problems trying to get my plugin to work.
It runs OK, but for some reason when you restart jedit the plugin causes two instances of jedit two run; one with the plugin running and docked, the other without.
The plugin is set to defer on startup , but that seems to be ignored.
I do the set up in the constructor for the main class. From what I can see in the docs it looks like I should actually be doing the startup from start() and stop() methods in the mainPlugin.class . But I'm not certain how that class is going to be able to find the main class (ie. the dockable window). Or even if that is what's causing my problems.
I'm not sure what I'm doing wrong, any ideas greatly appreciated!
Thanks, Colin
It runs OK, but for some reason when you restart jedit the plugin causes two instances of jedit two run; one with the plugin running and docked, the other without.
The plugin is set to defer on startup , but that seems to be ignored.
I do the set up in the constructor for the main class. From what I can see in the docs it looks like I should actually be doing the startup from start() and stop() methods in the mainPlugin.class . But I'm not certain how that class is going to be able to find the main class (ie. the dockable window). Or even if that is what's causing my problems.
I'm not sure what I'm doing wrong, any ideas greatly appreciated!
Thanks, Colin