de.cau.cs.kieler.kaom.diagram.custom.commands
Class ReInitKaomDiagramCommand
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.core.commands.AbstractHandler
de.cau.cs.kieler.core.ui.commands.ReInitDiagramCommand
de.cau.cs.kieler.kaom.diagram.custom.commands.ReInitKaomDiagramCommand
- All Implemented Interfaces:
- IHandler, IHandler2
public class ReInitKaomDiagramCommand
- extends ReInitDiagramCommand
A command that reinitializes a diagram file from a given kixs file.
- Rating

- (2010-06-14)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReInitKaomDiagramCommand
public ReInitKaomDiagramCommand()
performPostOperationAction
protected void performPostOperationAction(IFile path,
List<IFile> partners)
- Perform actions after the reinit.
- Overrides:
performPostOperationAction
in class ReInitDiagramCommand
- Parameters:
path
- the filepartners
- the partner files
createNewDiagram
public boolean createNewDiagram(EObject diagramRoot,
TransactionalEditingDomain editingDomain,
IFile diagramFile)
- Create a new diagram file from the given semantics model.
- Specified by:
createNewDiagram
in class ReInitDiagramCommand
- Parameters:
diagramRoot
- the root element.editingDomain
- the editing domain.diagramFile
- the destination file
- Returns:
- true if the creation was successful
getDiagramExtension
protected String getDiagramExtension()
- Provides the file extension for the diagram file.
- Specified by:
getDiagramExtension
in class ReInitDiagramCommand
- Returns:
- the file extension
getModelExtension
protected String getModelExtension()
- Provides the file extension for the model file.
- Specified by:
getModelExtension
in class ReInitDiagramCommand
- Returns:
- the file extension