edu.wpi.ebob.actions
Class CreateInstanceAction

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

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

An action for adding instances to the Object Bench.

Author:
Liam Morley

Field Summary
private static org.eclipse.jface.resource.ImageDescriptor disabledImg
           
private static org.eclipse.jface.resource.ImageDescriptor enabledImg
           
private  org.eclipse.swt.widgets.Shell shell
           
private  org.eclipse.jdt.core.IType type
           
 
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
CreateInstanceAction(org.eclipse.swt.widgets.Shell shell)
          Creates a new action, tied to the given shell.
CreateInstanceAction(org.eclipse.swt.widgets.Shell shell, org.eclipse.jdt.core.IType type)
          Creates a new action, tied to the given shell.
 
Method Summary
 void run()
          Runs the wizard for adding objects to the bench.
 
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

enabledImg

private static final org.eclipse.jface.resource.ImageDescriptor enabledImg

disabledImg

private static final org.eclipse.jface.resource.ImageDescriptor disabledImg

type

private final org.eclipse.jdt.core.IType type

shell

private final org.eclipse.swt.widgets.Shell shell
Constructor Detail

CreateInstanceAction

public CreateInstanceAction(org.eclipse.swt.widgets.Shell shell)
Creates a new action, tied to the given shell.

Parameters:
shell - The shell that will own the wizard.
See Also:
AddToObjectBenchWizard

CreateInstanceAction

public CreateInstanceAction(org.eclipse.swt.widgets.Shell shell,
                            org.eclipse.jdt.core.IType type)
Creates a new action, tied to the given shell. Starts the wizard with the given class.

Parameters:
shell - The shell that will own the wizard.
type - The class to begin the wizard with.
See Also:
AddToObjectBenchWizard
Method Detail

run

public void run()
Runs the wizard for adding objects to the bench.

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