public abstract class AbstractUiPlugIn extends AbstractPlugIn implements java.awt.event.ActionListener
| Modifier and Type | Field and Description | 
|---|---|
protected EnableCheck | 
enableCheck  | 
protected WorkbenchContext | 
workbenchContext
The workbench context. 
 | 
shortcutKeys, shortcutModifiers| Constructor and Description | 
|---|
AbstractUiPlugIn()  | 
AbstractUiPlugIn(javax.swing.Icon icon)  | 
AbstractUiPlugIn(java.lang.String name)  | 
AbstractUiPlugIn(java.lang.String name,
                javax.swing.Icon icon)  | 
AbstractUiPlugIn(java.lang.String name,
                javax.swing.Icon icon,
                java.lang.String toolTip)  | 
AbstractUiPlugIn(java.lang.String name,
                java.lang.String toolTip)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
actionPerformed(java.awt.event.ActionEvent e)
Wrap the plug-in as an ActionListener. 
 | 
boolean | 
execute(PlugInContext context)
Method to be overridden by implementations to execute the plug-in. 
 | 
EnableCheck | 
getEnableCheck()  | 
javax.swing.Icon | 
getIcon()
Get the icon for the plug-in. 
 | 
java.lang.String | 
getName()
Get the name of the plug-in. 
 | 
java.lang.String | 
getToolTip()
Get the tool-tip for the plug-in. 
 | 
void | 
initialize(PlugInContext context)
Method to be overridden by implementations to initialize the plug-in. 
 | 
protected boolean | 
isRollingBackInvalidEdits(PlugInContext context)  | 
protected void | 
reportNothingToUndoYet(PlugInContext context)
Indicates that this plug-in either (1) is undoable but hasn't modified the
 system yet or (2) does not modify the system. 
 | 
protected void | 
setWorkbenchContext(WorkbenchContext workbenchContext)  | 
addParameter, createName, execute, execute, fetchShortcutEnabledPlugins, getBooleanParam, getDoubleParam, getEnableCheck, getIcon, getIcon, getIntegerParam, getParameter, getParameters, getShortcutKeys, getShortcutKeyStroke, getShortcutModifiers, getStringParam, isShortcutEnabled, registerShortcuts, setParameters, setShortcutKeys, setShortcutModifiers, toActionListener, toStringprotected WorkbenchContext workbenchContext
protected EnableCheck enableCheck
public AbstractUiPlugIn()
public AbstractUiPlugIn(java.lang.String name)
public AbstractUiPlugIn(javax.swing.Icon icon)
public AbstractUiPlugIn(java.lang.String name,
                java.lang.String toolTip)
public AbstractUiPlugIn(java.lang.String name,
                javax.swing.Icon icon)
public AbstractUiPlugIn(java.lang.String name,
                javax.swing.Icon icon,
                java.lang.String toolTip)
public void initialize(PlugInContext context) throws java.lang.Exception
initialize in interface PlugIninitialize in class AbstractPlugIncontext - The plug-in context.java.lang.Exceptionpublic boolean execute(PlugInContext context) throws java.lang.Exception
execute in interface PlugInexecute in class AbstractPlugIncontext - The plug-in context.java.lang.Exception - if a problem occurs during plug-in executionThreadedPlugInprotected void reportNothingToUndoYet(PlugInContext context)
reportNothingToUndoYet in class AbstractPlugInprotected boolean isRollingBackInvalidEdits(PlugInContext context)
isRollingBackInvalidEdits in class AbstractPlugInpublic void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed in interface java.awt.event.ActionListenere - The action event.public EnableCheck getEnableCheck()
getEnableCheck in interface EnableCheckedgetEnableCheck in class AbstractPlugInpublic javax.swing.Icon getIcon()
public java.lang.String getName()
getName in interface PlugIngetName in class AbstractPlugInpublic java.lang.String getToolTip()
protected void setWorkbenchContext(WorkbenchContext workbenchContext)
workbenchContext - the workbenchContext to set