Class ToolboxPlugIn
- java.lang.Object
-
- com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
-
- com.vividsolutions.jump.workbench.ui.toolbox.ToolboxPlugIn
-
- All Implemented Interfaces:
CheckBoxed,EnableChecked,Iconified,PlugIn,Recordable,ShortcutEnabled
- Direct Known Subclasses:
BeanShellPlugIn,ConnectionManagerToolboxPlugIn,DataStoreTransactionManagerPlugIn,EasyButtonsPlugin,EditingPlugIn,WarpingPlugIn,ZoomBarPlugIn
public abstract class ToolboxPlugIn extends AbstractPlugIn implements CheckBoxed
Deprecated.future implementations should useToolboxPlugInV2instead
-
-
Field Summary
-
Fields inherited from class com.vividsolutions.jump.workbench.plugin.AbstractPlugIn
shortcutKeys, shortcutModifiers
-
-
Constructor Summary
Constructors Constructor Description ToolboxPlugIn()Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcreateMainMenuItem(String[] menuPath, Icon icon, WorkbenchContext context)Deprecated.Creates a menu item with a checkbox beside it that appears when the toolbox is visible.booleanexecute(PlugInContext context)Deprecated.Toolbox subclasses can override this method to implement their own behaviour when the plug-in is called.EnableCheckgetEnableCheck()Deprecated.Use reflection to find an EnableCheck object defined by old method createEnableCheck in this plugin.ToolboxDialoggetToolbox()Deprecated.ToolboxDialoggetToolbox(WorkbenchContext context)Deprecated.protected abstract voidinitializeToolbox(ToolboxDialog toolbox)Deprecated.-
Methods inherited from class com.vividsolutions.jump.workbench.plugin.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
-
-
-
-
Method Detail
-
getToolbox
public ToolboxDialog getToolbox()
Deprecated.
-
getToolbox
public ToolboxDialog getToolbox(WorkbenchContext context)
Deprecated.- Returns:
- the toolbox for this plug-in class.
-
initializeToolbox
protected abstract void initializeToolbox(ToolboxDialog toolbox)
Deprecated.
-
execute
public boolean execute(PlugInContext context) throws Exception
Deprecated.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:
ThreadedPlugIn
-
createMainMenuItem
public void createMainMenuItem(String[] menuPath, Icon icon, WorkbenchContext context) throws Exception
Deprecated.Creates a menu item with a checkbox beside it that appears when the toolbox is visible.- Parameters:
icon- null to leave unspecified- Throws:
Exception
-
getEnableCheck
public EnableCheck getEnableCheck()
Deprecated.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
-
-