Re: ImageJ as Eclipse plugin
Posted by
Volker Baecker on
URL: http://imagej.273.s1.nabble.com/ImageJ-as-Eclipse-plugin-tp3702139p3702140.html
Hello Marcelll,
I'm using swing for plugins together with an awt based ImageJ. In the
beginning the gui got messed up.
After setting lookAndFeelSet in the class Java2 to true as the first
action after ImageJ started I don't
have any problems with the gui any more.
I'm using reflection to access the private field:
Field theField = receiver.getClass().getDeclaredField(name);
theField.setAccessible(true);
theField.set(receiver, value);
Cheers,
Volker
marcelll a écrit :
> Dear ImageJ users and developers,
>
> at the moment i'm developping an eclipse plugin which makes use of ImageJ.
> The problem is that the plugins in a self defined plugins directory don't
> work when i start the program programmatically.
> They appear in the ImageJ-plugins-menu but won't start without getting an
> error-message and the cause why they can't be started.
> Also when i start ImageJ programmatically the awt-frames seems to be
> disturbed (Gui Thread ?). So my first question is how can i archieve that
> ImageJ finds the ImageJ-plugins to start them properly when integrated in an
> eclipse-plugin ?
> The second question concerns about the disturbed awt-frames(a conversion to
> swing works in the most parts). Is there a way to get clean awt-frames and
> dialogs (maybe a method to avoid the disturbance of the gui-thread)?
>
> Thanks in advance for any answer !
>
>
>
>
--
passerelle antivirus du campus CNRS de Montpellier
--