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

- (2010-03-01)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReInitDiagramCommand
public ReInitDiagramCommand()
setEnabled
public void setEnabled(Object evaluationContext)
-
- Specified by:
setEnabled
in interface IHandler2
- Overrides:
setEnabled
in class AbstractHandler
execute
public Object execute(ExecutionEvent event)
throws ExecutionException
-
- Throws:
ExecutionException
createNewDiagram
public boolean createNewDiagram(EObject diagramRoot,
TransactionalEditingDomain editingDomain,
IPath kidsPath)
- Create a new diagram file from the given semantics model.
- Parameters:
diagramRoot
- the root element.editingDomain
- the editing domain.kidsPath
- the destination file
- Returns:
- true if the creation was successful