|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.core.commands.common.EventManager
org.eclipse.jface.action.AbstractAction
org.eclipse.jface.action.Action
org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler
org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction
org.eclipse.gmf.runtime.diagram.ui.actions.CopyAction
The copy action that copies the bitmap information on to the clipboard
This action is not really a DiagramAction as it doesn't have
a request. The doRun() and the refresh() and calculatedEnabled() have been overwritten
appropriately.
| Nested Class Summary |
| Nested classes inherited from class org.eclipse.gmf.runtime.common.ui.action.IActionWithProgress |
IActionWithProgress.WorkIndicatorType |
| 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 | |
CopyAction(IWorkbenchPage page)
Constructor |
|
| Method Summary | |
protected boolean |
calculateEnabled()
Calculates the enblement state of the action |
protected boolean |
canCopy(java.util.List parts)
If this list of parts contains a ShapeEditPart, return true, otherwise false. |
protected Request |
createTargetRequest()
This action is not really a DiagramAction as it doesn't have
a request. |
protected void |
doRun(IProgressMonitor progressMonitor)
Performs the actual work when this action handler is run. |
void |
init()
initialize with the correct images and action id |
protected boolean |
isCopyAll()
If the selected object is a DiagramEditPart, return true, otherwise return false. |
protected boolean |
isSelectionListener()
return true so this action cares about selection changes |
void |
refresh()
Refresh the enablement status based on whether the action is enabled or not. |
| Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.actions.DiagramAction |
clearTargetRequest, createOperationSet, dispose, execute, filterEditPartsMatching, getCommand, getCommand, getCommandLabel, getDiagramCommandStack, getDiagramEditDomain, getDiagramEditPart, getDiagramGraphicalViewer, getDiagramWorkbenchPart, getOperationSet, getPreferencesHint, getSelectedObjects, getTargetEditParts, getTargetRequest, setTargetRequest, updateTargetRequest |
| Methods inherited from class org.eclipse.gmf.runtime.common.ui.action.AbstractActionHandler |
contributedToPart, getActionManager, getLabel, getOperationHistory, getPartListener, getSelection, getStructuredSelection, getUndoContext, getWorkbenchPage, getWorkbenchPart, getWorkIndicatorType, handle, historyNotification, isDisposed, isOperationHistoryListener, isPropertyListener, isRunnable, isSetup, needsSetup, openErrorDialog, propertyChanged, run, run, runWithEvent, selectionChanged, setDisposed, setPartSelector, setSetup, setup, setWorkbenchPart |
| 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, getAccelerator, getActionDefinitionId, getDescription, getDisabledImageDescriptor, getHelpListener, getHoverImageDescriptor, getId, getImageDescriptor, getMenuCreator, getStyle, getText, getToolTipText, isChecked, isEnabled, isHandled, removePropertyChangeListener, setAccelerator, setActionDefinitionId, setChecked, setDescription, setDisabledImageDescriptor, setEnabled, setHelpListener, setHoverImageDescriptor, setId, setImageDescriptor, setMenuCreator, setText, setToolTipText |
| Constructor Detail |
public CopyAction(IWorkbenchPage page)
page - the active workbenchpage| Method Detail |
public void init()
init in interface IDisposableActioninit in class AbstractActionHandlerIDisposableAction.init()protected boolean calculateEnabled()
DiagramAction
calculateEnabled in class DiagramActiontrue if action should be enabled,
false otherwiseprotected boolean isCopyAll()
protected boolean canCopy(java.util.List parts)
parts - the parts to check
protected boolean isSelectionListener()
isSelectionListener in class DiagramActionAbstractActionHandler.isSelectionListener()protected Request createTargetRequest()
DiagramAction as it doesn't have
a request. The doRun() and the refresh() and calculatedEnabled() have been overwritten
appropriately.
createTargetRequest in class DiagramActionDiagramAction.createTargetRequest()protected void doRun(IProgressMonitor progressMonitor)
AbstractActionHandler
doRun in class DiagramActionpublic void refresh()
refresh in interface IActionWithProgressrefresh in class DiagramActionIActionWithProgress.refresh()
|
Runtime | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.