Class CursorToolPluginWrapper
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.cursortool.CursorToolPluginWrapper
-
-
Constructor Summary
Constructors Constructor Description CursorToolPluginWrapper(CursorTool cursorTool)create a plugin instance for the given cursor tool make sure the cursor tool respects shortcuts by wrapping it intoQuasimodeTool
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecute(PlugInContext context)Performs the action for this plugin.ImageIcongetIcon()StringgetName()Returns a very brief description of this PlugIn e.g.voidinitialize(PlugInContext context)Called when Workbench starts up to allow plugins to initialize themselves.
-
-
-
Constructor Detail
-
CursorToolPluginWrapper
public CursorToolPluginWrapper(CursorTool cursorTool)
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 Detail
-
initialize
public void initialize(PlugInContext context) throws Exception
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
public boolean execute(PlugInContext context) throws Exception
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:
ThreadedPlugIn
-
getName
public String getName()
Description copied from interface:PlugInReturns a very brief description of this PlugIn e.g. for display as a menu item
-
getIcon
public ImageIcon getIcon()
-
-