|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.ksbase.ui.utils.AbstractCutCopyPasteCommandFactory
public abstract class AbstractCutCopyPasteCommandFactory
Creates the cut, copy and paste commands from ksbase.
Constructor Summary | |
---|---|
AbstractCutCopyPasteCommandFactory()
|
Method Summary | |
---|---|
ICommand |
buildCopyCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
List<EObject> selection)
Build a new copy command. |
ICommand |
buildCutCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
List<EObject> selection)
Build a new cut command. |
ICommand |
buildPasteCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part,
List<EObject> selection)
Build a new paste command. |
protected abstract org.osgi.framework.Bundle |
getBundle()
Getter for the bundle of the plugin where the file is located. |
protected abstract String |
getFile()
Getter for the transformation file. |
protected abstract List<String> |
getModel()
Get the path to the model package. |
protected abstract Class<?>[] |
getTypes()
Get a list of all types that can be copied or pasted. |
protected void |
performPostOperationActions(IProgressMonitor monitor)
Perform actions after the operation has finished. |
protected void |
performPreOperationActions(IProgressMonitor monitor)
Perform actions before the operation has started. |
protected void |
refreshEditPolicies(IEditorPart editorPart)
Refresh the edit policies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractCutCopyPasteCommandFactory()
Method Detail |
---|
public ICommand buildCopyCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
buildCopyCommand
in interface ICutCopyPasteCommandFactory
part
- the editorselection
- the selection
public ICommand buildCutCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
buildCutCommand
in interface ICutCopyPasteCommandFactory
part
- the editorselection
- the selection
public ICommand buildPasteCommand(org.eclipse.gmf.runtime.diagram.ui.parts.IDiagramWorkbenchPart part, List<EObject> selection)
buildPasteCommand
in interface ICutCopyPasteCommandFactory
part
- the editorselection
- the selection
protected abstract String getFile()
protected abstract org.osgi.framework.Bundle getBundle()
protected abstract Class<?>[] getTypes()
protected abstract List<String> getModel()
protected void performPreOperationActions(IProgressMonitor monitor)
monitor
- a progress monitorprotected void performPostOperationActions(IProgressMonitor monitor)
monitor
- a progress monitorprotected void refreshEditPolicies(IEditorPart editorPart)
editorPart
- the editor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |