de.cau.cs.kieler.keg.ksbase.copypaste
Class KEGCutCopyPasteHandler

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.model.gmf.handlers.AbstractCutCopyPasteHandler
              extended by de.cau.cs.kieler.keg.ksbase.copypaste.KEGCutCopyPasteHandler
All Implemented Interfaces:
IGlobalActionHandler

public class KEGCutCopyPasteHandler
extends AbstractCutCopyPasteHandler

Graphs specific handler for cut, copy and paste operations.

Rating red

Constructor Summary
KEGCutCopyPasteHandler()
          Constructs a new GraphsCutCopyPasteHandler.
 
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.model.gmf.handlers.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

KEGCutCopyPasteHandler

public KEGCutCopyPasteHandler()
Constructs a new GraphsCutCopyPasteHandler.

Method Detail

isValidSelection

protected boolean isValidSelection(IStructuredSelection selection)
Checks whether the selection contains only valid parts. This must be implemented by the subclasses.

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