de.cau.cs.kieler.synccharts.diagram.custom.handlers
Class CutCopyPasteSupportHandler

java.lang.Object
  extended by org.eclipse.gmf.runtime.common.ui.services.action.global.AbstractGlobalActionHandler
      extended by org.eclipse.gmf.runtime.diagram.ui.providers.DiagramGlobalActionHandler
          extended by de.cau.cs.kieler.synccharts.diagram.custom.handlers.CutCopyPasteSupportHandler
All Implemented Interfaces:
IGlobalActionHandler

public class CutCopyPasteSupportHandler
extends DiagramGlobalActionHandler

Rating red

Constructor Summary
CutCopyPasteSupportHandler()
          Constructor for CopyWithImageSupportGlobalActionHandler.
 
Method Summary
 boolean canHandle(IGlobalActionContext cntxt)
           
protected  boolean canPaste(IGlobalActionContext cntxt)
           
protected  org.eclipse.gmf.runtime.diagram.ui.requests.PasteViewRequest createPasteViewRequest()
           
 ICommand getCommand(IGlobalActionContext cntxt)
           
protected  ICommand getCopyCommand(IGlobalActionContext cntxt, org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart, boolean isUndoable)
           
protected  ICommand getCutCommand(IGlobalActionContext cntxt, org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart)
          Getter for the cut command.
 
Methods inherited from class org.eclipse.gmf.runtime.diagram.ui.providers.DiagramGlobalActionHandler
canCopy, canCut, canSave, getMapMode, getSelectedViews, selectAddedObject
 
Methods inherited from class org.eclipse.gmf.runtime.common.ui.services.action.global.AbstractGlobalActionHandler
getLabel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CutCopyPasteSupportHandler

public CutCopyPasteSupportHandler()
Constructor for CopyWithImageSupportGlobalActionHandler.

Method Detail

canHandle

public boolean canHandle(IGlobalActionContext cntxt)
Specified by:
canHandle in interface IGlobalActionHandler
Overrides:
canHandle in class DiagramGlobalActionHandler
See Also:
org.eclipse.gmf.runtime.common.ui.action.AbstractGlobalActionHandler#canHandle(IGlobalActionContext)

canPaste

protected boolean canPaste(IGlobalActionContext cntxt)
Overrides:
canPaste in class DiagramGlobalActionHandler

getCopyCommand

protected ICommand getCopyCommand(IGlobalActionContext cntxt,
                                  org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart,
                                  boolean isUndoable)
Overrides:
getCopyCommand in class DiagramGlobalActionHandler

getCutCommand

protected ICommand getCutCommand(IGlobalActionContext cntxt,
                                 org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart diagramPart)
Getter for the cut command.

Overrides:
getCutCommand in class DiagramGlobalActionHandler
Parameters:
cntxt -
diagramPart -
Returns:

getCommand

public ICommand getCommand(IGlobalActionContext cntxt)
Specified by:
getCommand in interface IGlobalActionHandler
Overrides:
getCommand in class DiagramGlobalActionHandler

createPasteViewRequest

protected org.eclipse.gmf.runtime.diagram.ui.requests.PasteViewRequest createPasteViewRequest()
Overrides:
createPasteViewRequest in class DiagramGlobalActionHandler