edu.wpi.ebob.actions
Class ExecuteMethodAction

java.lang.Object
  extended by org.eclipse.jface.action.Action
      extended by edu.wpi.ebob.actions.ExecuteMethodAction
All Implemented Interfaces:
org.eclipse.jface.action.IAction

public class ExecuteMethodAction
extends org.eclipse.jface.action.Action

Author:
Liam Morley

Field Summary
private  IMethod method
           
private static org.eclipse.swt.graphics.Point METHOD_ICON_SIZE
          size of the method icons, based Eclipse User Interface Guidelines, section "Visual Design > Icon Overlays > Java Overlay".
private  IObject obj
           
 
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
ExecuteMethodAction(IMethod method, IObject obj)
           
 
Method Summary
private  void refreshPropertiesView()
           
 void run()
           
private  void setImageDescriptor()
          sets the image descriptor for this action based on the properties of the method.
private  void setText()
          sets the name for this action based on the method.
 
Methods inherited from class org.eclipse.jface.action.Action
addPropertyChangeListener, convertAccelerator, convertAccelerator, findKeyCode, findKeyString, findModifier, findModifierString, firePropertyChange, firePropertyChange, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

private IMethod method

obj

private IObject obj

METHOD_ICON_SIZE

private static final org.eclipse.swt.graphics.Point METHOD_ICON_SIZE
size of the method icons, based Eclipse User Interface Guidelines, section "Visual Design > Icon Overlays > Java Overlay".

Constructor Detail

ExecuteMethodAction

public ExecuteMethodAction(IMethod method,
                           IObject obj)
Method Detail

setText

private void setText()
sets the name for this action based on the method.


setImageDescriptor

private void setImageDescriptor()
sets the image descriptor for this action based on the properties of the method.


run

public void run()
Specified by:
run in interface org.eclipse.jface.action.IAction
Overrides:
run in class org.eclipse.jface.action.Action

refreshPropertiesView

private void refreshPropertiesView()