vocleditor.actions
Class AddMethodAction

java.lang.Object
  extended by org.eclipse.jface.action.Action
      extended by org.eclipse.gef.ui.actions.WorkbenchPartAction
          extended by org.eclipse.gef.ui.actions.SelectionAction
              extended by vocleditor.actions.AddMethodAction
All Implemented Interfaces:
org.eclipse.gef.Disposable, org.eclipse.gef.ui.actions.UpdateAction, org.eclipse.jface.action.IAction

public class AddMethodAction
extends org.eclipse.gef.ui.actions.SelectionAction

Author:
tugstugi

Field Summary
static java.lang.String ID
           
 
Fields inherited from interface org.eclipse.jface.action.IAction
AS_CHECK_BOX, AS_DROP_DOWN_MENU, AS_PUSH_BUTTON, AS_RADIO_BUTTON, AS_UNSPECIFIED, CHECKED, DESCRIPTION, ENABLED, HANDLED, IMAGE, RESULT, TEXT, TOOL_TIP_TEXT
 
Constructor Summary
AddMethodAction(org.eclipse.ui.IWorkbenchPart part)
          The default constructor with the workbench part.
 
Method Summary
 org.eclipse.gef.commands.Command getCommand()
          Gets the add method command.
 void run()
          Runs the action.
 
Methods inherited from class org.eclipse.gef.ui.actions.SelectionAction
dispose, setSelectionProvider, update
 
Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction
isEnabled, setLazyEnablementCalculation
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, removePropertyChangeListener, runWithEvent, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID

public static java.lang.String ID
Constructor Detail

AddMethodAction

public AddMethodAction(org.eclipse.ui.IWorkbenchPart part)
The default constructor with the workbench part.

Parameters:
part - the workbench part
Method Detail

run

public void run()
Runs the action.

Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

getCommand

public org.eclipse.gef.commands.Command getCommand()
Gets the add method command.

Returns:
the add method command