Package com.iizigo.vs
Class CreateVSFieldAction
- java.lang.Object
- org.eclipse.core.commands.common.EventManager
- org.eclipse.jface.action.AbstractAction
- org.eclipse.jface.action.Action
- com.iizigo.jface.PartAction
- com.iizigo.vs.CreateVSFieldAction
- All Implemented Interfaces:
org.eclipse.jface.action.IAction
public class CreateVSFieldAction extends PartAction
Creates a VirtualSpace Field from a data provider plug-in (e.g. Terminal or DB).- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description CreateVSFieldAction(org.eclipse.jface.preference.IPreferenceStore store, java.lang.String skipPromptID, java.lang.String sourceName, org.eclipse.swt.graphics.Image sourceImage, ICreateVSField creator, IPropUndoRedo undoRedo)
Creates the action.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
Action execution.void
update(int cc)
Updates the text/image/tooltip and enabled state depending on selection count.Methods inherited from class com.iizigo.jface.PartAction
add, dispose, refreshChildren, remove, runWithEvent, setMenuItemTooltips, useMenuItemTooltips
Methods inherited from class org.eclipse.jface.action.Action
convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
Methods inherited from class org.eclipse.jface.action.AbstractAction
addPropertyChangeListener, firePropertyChange, firePropertyChange, removePropertyChangeListener
Constructor Detail
CreateVSFieldAction
public CreateVSFieldAction(org.eclipse.jface.preference.IPreferenceStore store, java.lang.String skipPromptID, java.lang.String sourceName, org.eclipse.swt.graphics.Image sourceImage, ICreateVSField creator, IPropUndoRedo undoRedo)
Creates the action.- Parameters:
store
- The preference store for "skipPromptID".skipPromptID
- The ID in the preference store when prompts is skipped (Boolean value).creator
- The creator interface.
Method Detail
update
public void update(int cc)
Updates the text/image/tooltip and enabled state depending on selection count.
run
public void run()
Action execution.- Specified by:
run
in interfaceorg.eclipse.jface.action.IAction
- Overrides:
run
in classPartAction