Interface PlugIn
-
- All Known Subinterfaces:
ThreadedPlugIn
- All Known Implementing Classes:
AboutPlugIn
,AbstractPlugIn
,AbstractSaveProjectPlugIn
,AddNewCategoryPlugIn
,AddNewFeaturesPlugIn
,AddNewLayerPlugIn
,AddWMSDemoBoxEasterEggPlugIn
,AddWMSQueryPlugIn
,AffineTransformPlugIn
,BeanShellPlugIn
,BoundaryMatchDataPlugIn
,BufferPlugIn
,CalculateAreasAndLengthsPlugIn
,ChangeCoordinateSystemPlugIn
,ChangeStylesPlugIn
,ClearSelectionPlugIn
,CloneWindowPlugIn
,CombineSelectedFeaturesPlugIn
,CopyImagePlugIn
,CopySelectedItemsPlugIn
,CopySelectedLayersPlugIn
,CopySelectedLayersToWarpingVectorsPlugIn
,CopyThisCoordinatePlugIn
,CustomFillPatternExamplePlugIn
,CutSelectedItemsPlugIn
,CutSelectedLayersPlugIn
,DeleteAllFeaturesPlugIn
,DeleteSelectedItemsPlugIn
,EditablePlugIn
,EditingPlugIn
,EditSelectedFeaturePlugIn
,EditWMSQueryPlugIn
,ExplodeSelectedFeaturesPlugIn
,ExportImagePlugIn
,FeatureInfoPlugIn
,FeatureStatisticsPlugIn
,FirstTaskFramePlugIn
,GenerateLogPlugIn
,GeometryFunctionPlugIn
,InstallDelineationToolPlugIn
,InstallGridPlugIn
,InstallRendererPlugIn
,InstallScaleBarPlugIn
,InstallSkinsPlugIn
,InstallStandardDataSourceQueryChoosersPlugIn
,InstallStandardFeatureTextWritersPlugIn
,InstallZoomBarPlugIn
,LayerableClipboardPlugIn
,LayerStatisticsPlugIn
,LoadDatasetPlugIn
,LoadDatasetPlugIn
,LoadDatasetToCategoryPlugIn
,MacroPlugIn
,MainButtonPlugIn
,MapToolTipsPlugIn
,MicroscopePlugIn
,MoveLayerablePlugIn
,NewTaskPlugIn
,OpenProjectPlugIn
,OptionsPlugIn
,OutputWindowPlugIn
,OverlayPlugIn
,PasteItemsPlugIn
,PasteLayersPlugIn
,PersistentBlackboardPlugIn
,ProgressReportingPlugIn
,RandomArrowsPlugIn
,RandomTrianglesPlugIn
,RedoPlugIn
,RemoveSelectedCategoriesPlugIn
,RemoveSelectedLayersPlugIn
,SaveDatasetAsPlugIn
,SaveDatasetAsPlugIn
,SaveImageAsPlugIn
,SaveProjectAsPlugIn
,SaveProjectPlugIn
,ScaleBarPlugIn
,SelectFeaturesInFencePlugIn
,ShortcutKeysPlugIn
,ShowTriangulationPlugIn
,TestColorThemingPlugIn
,ThreadedBasePlugIn
,ToolboxPlugIn
,UndoPlugIn
,UnionPlugIn
,ValidateSelectedLayersPlugIn
,VerticesInFencePlugIn
,ViewAttributesPlugIn
,ViewSchemaPlugIn
,WarpingPlugIn
,WKTPlugIn
,ZoomBarPlugIn
,ZoomNextPlugIn
,ZoomPreviousPlugIn
,ZoomToClickPlugIn
,ZoomToCoordinatePlugIn
,ZoomToFencePlugIn
,ZoomToFullExtentPlugIn
,ZoomToLayerPlugIn
,ZoomToSelectedItemsPlugIn
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.
- See Also:
Setup
,Extension
,PlugInManager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
execute(PlugInContext context)
Performs the action for this plugin.String
getName()
Returns a very brief description of this PlugIn e.g.void
initialize(PlugInContext context)
Called when Workbench starts up to allow plugins to initialize themselves.
-
-
-
Method Detail
-
initialize
void initialize(PlugInContext context) throws Exception
Called when Workbench starts up to allow plugins to initialize themselves.- Throws:
Exception
-
execute
boolean execute(PlugInContext context) throws Exception
Performs the action for this plugin. For threaded plugins with dialogs, this method contains the code to invoke the dialog. If the user cancels the dialog, this method should returnfalse
to prevent the run method from being called.- Returns:
- true if the action completed, false if it was aborted. Used by ThreadedPlugIns to indicate that their #run method needn't be called next.
- Throws:
Exception
- if a problem occurs during plug-in execution- See Also:
ThreadedPlugIn
-
getName
String getName()
Returns a very brief description of this PlugIn e.g. for display as a menu item- Returns:
- the name of this PlugIn
-
-