public interface PlugIn
Plug-ins are code modules that can be easily added to or removed from JUMP Workbench. For example, each menu item in the JUMP Workbench is a PlugIn. Typically plug-ins are executed with a menu item -- FeatureInstaller has methods for adding plug-ins as menu items. Alternatively, a plug-in need not be associated with a menu-item; it might, for example, simply run some code when the Workbench starts up.
"Built-in" plug-ins are configured in a Setup class. Third-party plug-ins reside in a JAR file that also contains an Extension class that configures them. During development, third-party plug-ins may be specified in the workbench-properties.xml file, to avoid having to build a JAR file.
Setup
,
Extension
,
PlugInManager
Modifier and Type | Method and Description |
---|---|
boolean |
execute(PlugInContext context)
Performs the action for this plugin.
|
java.lang.String |
getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item
|
void |
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.
|
void initialize(PlugInContext context) throws java.lang.Exception
java.lang.Exception
boolean execute(PlugInContext context) throws java.lang.Exception
false
to prevent the run method
from being called.java.lang.Exception
- if a problem occurs during plug-in executionThreadedPlugIn
java.lang.String getName()