- All Superinterfaces:
- PluginStartAsThread, java.lang.Runnable
- All Known Subinterfaces:
- PluginDaemon
- All Known Implementing Classes:
- GenerateABugTutorial
public interface PluginThreaded
extends java.lang.Runnable, PluginStartAsThread
Plugin Threaded interface.
By default a plugin is launched on the AWT Event Dispatch Thread so GUI creation
can be done directly without invokeLater
calls.
A common problem is that long process will actually lock the EDT and make GUI not responding.
A plugin implementing this interface will have both its run()
methods called
in a separate thread but developer has to use invokeLater
method
for GUI creation / modification. Also there is no more guarantee that plugin constructor is called
in the EDT (which is the case for default plugin).
- Author:
- Stephane