de.cau.cs.kieler.kaom.diagram.custom.commands
Class KaomCutCopyPasteCommandFactory

java.lang.Object
  extended by de.cau.cs.kieler.ksbase.ui.utils.AbstractCutCopyPasteCommandFactory
      extended by de.cau.cs.kieler.kaom.diagram.custom.commands.KaomCutCopyPasteCommandFactory
All Implemented Interfaces:
ICutCopyPasteCommandFactory

public class KaomCutCopyPasteCommandFactory
extends AbstractCutCopyPasteCommandFactory

Creates the cut, copy and paste commands from ksbase.

Rating red

Constructor Summary
KaomCutCopyPasteCommandFactory()
           
 
Method Summary
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
buildCopyCommand, 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

KaomCutCopyPasteCommandFactory

public KaomCutCopyPasteCommandFactory()
Method Detail

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

getFile

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

Specified by:
getFile in class AbstractCutCopyPasteCommandFactory
Returns:
the file

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

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