|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.action.Action
edu.wpi.ebob.actions.RemoveInstanceAction
public class RemoveInstanceAction
Removes the instance currently selected in the Object Bench.
Field Summary | |
---|---|
private org.eclipse.jface.resource.ImageDescriptor |
disabledImg
|
private org.eclipse.jface.resource.ImageDescriptor |
enabledImg
|
private Instance |
instance
|
private org.eclipse.jface.viewers.ISelectionProvider |
provider
|
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 | |
---|---|
RemoveInstanceAction()
Constructs new RemoveInstanceAction using the
ObjBenchView 's selection provider. |
|
RemoveInstanceAction(Instance instance)
Creates a new RemoveInstanceAction for the purpose of
removing the specified instance. |
|
RemoveInstanceAction(org.eclipse.jface.viewers.ISelectionProvider provider)
Creates a new RemoveInstanceAction using the given
selection provider. |
Method Summary | |
---|---|
void |
dispose()
Disposes this action by removing it as a listener from the selection provider. |
private void |
init()
initializes this action. |
void |
run()
Removes the selected instance from the bench. |
void |
selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
|
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 |
---|
private final org.eclipse.jface.resource.ImageDescriptor enabledImg
private final org.eclipse.jface.resource.ImageDescriptor disabledImg
private Instance instance
private org.eclipse.jface.viewers.ISelectionProvider provider
Constructor Detail |
---|
public RemoveInstanceAction()
RemoveInstanceAction
using the
ObjBenchView
's selection provider. The ObjBenchView MUST
be on the workbench, or it won't be able to be retrieved; in this case,
an IllegalStateException
is thrown.
java.lang.IllegalStateException
- if ObjBenchView
can't be retrievedpublic RemoveInstanceAction(org.eclipse.jface.viewers.ISelectionProvider provider)
RemoveInstanceAction
using the given
selection provider.
provider
- The selection provider that this instance will be registered
with.public RemoveInstanceAction(Instance instance)
RemoveInstanceAction
for the purpose of
removing the specified instance.
instance
- Method Detail |
---|
private void init()
public void dispose()
public void run()
run
in interface org.eclipse.jface.action.IAction
run
in class org.eclipse.jface.action.Action
IAction.run()
public void selectionChanged(org.eclipse.jface.viewers.SelectionChangedEvent event)
selectionChanged
in interface org.eclipse.jface.viewers.ISelectionChangedListener
ISelectionChangedListener.selectionChanged(SelectionChangedEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |