Class ToolboxPlugInV2
java.lang.Object
com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
com.vividsolutions.jump.workbench.ui.toolbox.ToolboxPlugInV2
- All Implemented Interfaces:
CheckBoxed, EnableChecked, Iconified, PlugIn, Recordable, ShortcutEnabled
- Direct Known Subclasses:
PythonToolsPlugIn
pretty much
ToolboxPlugIn but cleaned up plus propagating errors
from initializeToolbox() -> getToolbox() -> execute() making implementations
easier and more failsafe-
Field Summary
Fields inherited from class AbstractPlugIn
shortcutKeys, shortcutModifiers -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(PlugInContext context) Toolbox subclasses can override this method to implement their own behaviour when the plug-in is called.Use reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.protected abstract ToolboxDialogMethods inherited from class AbstractPlugIn
addParameter, createName, execute, execute, getBooleanParam, getContext, getDoubleParam, getIcon, getIcon, getIcon, getIntegerParam, getName, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, getWorkbenchContext, initialize, isRollingBackInvalidEdits, isShortcutEnabled, reportNothingToUndoYet, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toString
-
Constructor Details
-
ToolboxPlugInV2
public ToolboxPlugInV2()
-
-
Method Details
-
getToolbox
- Returns:
- the toolbox for this plug-in class.
- Throws:
Exception- if an Exception occurs during Toolbox initialization
-
initializeToolbox
- Throws:
Exception
-
execute
Toolbox subclasses can override this method to implement their own behaviour when the plug-in is called. Remember to call super.execute to make the toolbox visible.- Specified by:
executein interfacePlugIn- Overrides:
executein classAbstractPlugIn- Parameters:
context- context of this PlugIn- Returns:
- true if the PlugIn has been executed
- Throws:
Exception- if an Exception occurs during execution- See Also:
-
getEnableCheck
Description copied from class:AbstractPlugInUse reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.- Specified by:
getEnableCheckin interfaceEnableChecked- Overrides:
getEnableCheckin classAbstractPlugIn- Returns:
- the EnableCheck defined the old way
-