|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.core.commands.common.EventManager org.eclipse.jface.action.AbstractAction org.eclipse.jface.action.Action org.eclipse.gef.ui.actions.WorkbenchPartAction uk.ac.kcl.cch.jb.pliny.actions.MinimizeAllAction
This action supports the Minimize All action for Pliny editors and view.
Note that this action derives from GEF's WorkbenchPartAction, so it operates with editors and views that contain a CommandStack, and the minimize is done by means of a command so that it is undoable.
Field Summary |
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 | |
MinimizeAllAction()
constructor for this action. |
|
MinimizeAllAction(IResourceDrivenPart part)
constructor for this action to be used by any pliny view or editor that implements IResourceDrivenPart . |
Method Summary | |
protected boolean |
calculateEnabled()
|
protected void |
init()
|
void |
run()
executes the command MinimizeAllContainedObjectCommand
against the part's CommandStack. |
void |
updatePart(IResourceDrivenPart part)
provides a pliny part with which this action is to work. |
Methods inherited from class org.eclipse.gef.ui.actions.WorkbenchPartAction |
dispose, execute, getCommandStack, getWorkbenchPart, isEnabled, refresh, setLazyEnablementCalculation, setWorkbenchPart, update |
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, isHandled, notifyResult, removeAcceleratorText, removeMnemonics, runWithEvent, 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 |
Methods inherited from class org.eclipse.core.commands.common.EventManager |
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.action.IAction |
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
public MinimizeAllAction()
updatePart(part)
must be called (to give the code a part
against which to work) before run()
is invoked.
public MinimizeAllAction(IResourceDrivenPart part)
IResourceDrivenPart
.
part
- the Resource Driver PartMethod Detail |
protected void init()
public void updatePart(IResourceDrivenPart part)
IResourceDrivenPart
.
part
- the IResourceDrivenPartpublic void run()
MinimizeAllContainedObjectCommand
against the part's CommandStack. This makes the minimization
undoable.
protected boolean calculateEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |