de.cau.cs.kieler.kaom.diagram.custom.handlers
Class KaomCutCopyPasteHandler

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.core.ui.handler.AbstractCutCopyPasteHandler
              extended by de.cau.cs.kieler.kaom.diagram.custom.handlers.KaomCutCopyPasteHandler
All Implemented Interfaces:
IGlobalActionHandler

public class KaomCutCopyPasteHandler
extends AbstractCutCopyPasteHandler

Rating red

Constructor Summary
KaomCutCopyPasteHandler()
          Constructor for CopyWithImageSupportGlobalActionHandler.
 
Method Summary
protected  ICutCopyPasteCommandFactory getCommandFactory()
          Getter for the factory producing the commands.
protected  boolean isValidSelection(IStructuredSelection selection)
          Checks whether the selection contains only valid parts.
 
Methods inherited from class de.cau.cs.kieler.core.ui.handler.AbstractCutCopyPasteHandler
canHandle, canKsbaseCopy, canKsbasePaste, canPaste, createPasteViewRequest, getCommand, getCopyCommand, getCutCommand, getKsBaseCopyCommand, getKsBaseCutCommand, getKsbasePasteCommand
 
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

KaomCutCopyPasteHandler

public KaomCutCopyPasteHandler()
Constructor for CopyWithImageSupportGlobalActionHandler.

Method Detail

isValidSelection

protected boolean isValidSelection(IStructuredSelection selection)
Checks whether the selection contains only valid parts.

Specified by:
isValidSelection in class AbstractCutCopyPasteHandler
Parameters:
selection - the selection
Returns:
true if only valid parts are in the selection

getCommandFactory

protected ICutCopyPasteCommandFactory getCommandFactory()
Getter for the factory producing the commands.

Specified by:
getCommandFactory in class AbstractCutCopyPasteHandler
Returns:
the factory