Class CursorToolPluginWrapper
java.lang.Object
com.vividsolutions.jump.workbench.ui.cursortool.CursorToolPluginWrapper
- All Implemented Interfaces:
PlugIn
-
Constructor Summary
ConstructorsConstructorDescriptionCursorToolPluginWrapper(CursorTool cursorTool) create a plugin instance for the given cursor tool make sure the cursor tool respects shortcuts by wrapping it intoQuasimodeTool -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(PlugInContext context) Performs the action for this plugin.getIcon()getName()Returns a very brief description of this PlugIn e.g. for display as a menu itemvoidinitialize(PlugInContext context) Called when Workbench starts up to allow plugins to initialize themselves.
-
Constructor Details
-
CursorToolPluginWrapper
create a plugin instance for the given cursor tool make sure the cursor tool respects shortcuts by wrapping it intoQuasimodeTool- Parameters:
cursorTool- the cursor tool
-
-
Method Details
-
initialize
Description copied from interface:PlugInCalled when Workbench starts up to allow plugins to initialize themselves.- Specified by:
initializein interfacePlugIn- Parameters:
context- context of the PlugIn- Throws:
Exception- if an exception occur during initialization
-
execute
Description copied from interface:PlugInPerforms 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 returnfalseto prevent the run method from being called.- Specified by:
executein interfacePlugIn- Parameters:
context- context of this PlugIn- 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:
-
getName
-
getIcon
-