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

java.lang.Object
  extended by de.cau.cs.kieler.ksbase.ui.utils.AbstractCutCopyPasteCommandFactory
      extended by de.cau.cs.kieler.keg.ksbase.copypaste.KEGCutCopyPasteCommandFactory
All Implemented Interfaces:
ICutCopyPasteCommandFactory

public class KEGCutCopyPasteCommandFactory
extends AbstractCutCopyPasteCommandFactory

Creates the cut, copy and paste commands from ksbase.

Rating red

Constructor Summary
KEGCutCopyPasteCommandFactory()
           
 
Method Summary
 ICommand buildCopyCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
          Build a new copy command.
protected  org.osgi.framework.Bundle getBundle()
          Getter for the bundle of the plugin where the file is located.
protected  String getFile()
          Getter for the transformation file.
protected  List<String> getModel()
          Get the path to the model package.
protected  Class<?>[] getTypes()
          Get a list of all types that can be copied or pasted.
 
Methods inherited from class de.cau.cs.kieler.ksbase.ui.utils.AbstractCutCopyPasteCommandFactory
buildCutCommand, buildPasteCommand, performPostOperationActions, performPreOperationActions, refreshEditPolicies
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KEGCutCopyPasteCommandFactory

public KEGCutCopyPasteCommandFactory()
Method Detail

getFile

protected String getFile()
Getter for the transformation file. e.g.: /transformations/feature.ext

Specified by:
getFile in class AbstractCutCopyPasteCommandFactory
Returns:
the file

getBundle

protected org.osgi.framework.Bundle getBundle()
Getter for the bundle of the plugin where the file is located.

Specified by:
getBundle in class AbstractCutCopyPasteCommandFactory
Returns:
the bundle

getTypes

protected Class<?>[] getTypes()
Get a list of all types that can be copied or pasted.

Specified by:
getTypes in class AbstractCutCopyPasteCommandFactory
Returns:
the list of types

getModel

protected List<String> getModel()
Get the path to the model package. e.g.: de.cau.cs.kieler.synccharts.SyncchartsPackage

Specified by:
getModel in class AbstractCutCopyPasteCommandFactory
Returns:
the model package

buildCopyCommand

public ICommand buildCopyCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
                                 List<EObject> selection)
Description copied from class: AbstractCutCopyPasteCommandFactory
Build a new copy command.

Specified by:
buildCopyCommand in interface ICutCopyPasteCommandFactory
Overrides:
buildCopyCommand in class AbstractCutCopyPasteCommandFactory
Parameters:
part - the editor
selection - the selection
Returns:
the command