|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.common.command.AbstractCommand
de.cau.cs.kieler.synccharts.text.interfaces.bridge.InterfaceDeclSerializeCommand
public class InterfaceDeclSerializeCommand
Command for serializing all contained signals of a state and its regions back into the interface declaration.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.emf.common.command.AbstractCommand |
---|
AbstractCommand.NonDirtying |
Field Summary | |
---|---|
static int |
DELETE
determines that a signal was deleted. |
static int |
INPUT
determines that the input status of a signal was changed. |
static int |
NAME
determines that a signal name was changed. |
static int |
NEW
determines that a new signal was added. |
static int |
OUTPUT
determines that the output status of a signal was changed. |
static int |
REGION_SIGNAL
determines that a region's signal was modified. |
static int |
REGION_SIGNAL_DELETE
|
static int |
REGION_SIGNAL_NEW
|
static int |
REGION_VARIABLE
determines that a region's variable was modified. |
static int |
REGION_VARIABLE_DELETE
|
static int |
REGION_VARIABLE_NEW
|
static int |
UNDEFINED
determines that the modification is not further specified. |
Fields inherited from class org.eclipse.emf.common.command.AbstractCommand |
---|
description, isExecutable, isPrepared, label |
Constructor Summary | |
---|---|
InterfaceDeclSerializeCommand(State theRootState,
EObject changedSignalOrVariable,
org.eclipse.xtext.resource.XtextResource theResource,
String theOldName,
com.google.inject.Injector theInjector,
int theOccurredChange)
Constructor being used if the name of a signal has changed or a new signal was created. |
|
InterfaceDeclSerializeCommand(State theRootState,
com.google.inject.Injector theInjector,
org.eclipse.xtext.resource.XtextResource theResource)
Constructor used for canonical serialization. |
Method Summary | |
---|---|
void |
execute()
|
protected boolean |
prepare()
|
protected void |
processCanonicalSerialization()
|
void |
redo()
|
void |
undo()
|
Methods inherited from class org.eclipse.emf.common.command.AbstractCommand |
---|
canExecute, canUndo, chain, dispose, getAffectedObjects, getDescription, getLabel, getResult, setDescription, setLabel, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NEW
public static final int NAME
public static final int INPUT
public static final int OUTPUT
public static final int DELETE
public static final int REGION_SIGNAL
public static final int REGION_SIGNAL_NEW
public static final int REGION_SIGNAL_DELETE
public static final int REGION_VARIABLE
public static final int REGION_VARIABLE_NEW
public static final int REGION_VARIABLE_DELETE
public static final int UNDEFINED
Constructor Detail |
---|
public InterfaceDeclSerializeCommand(State theRootState, EObject changedSignalOrVariable, org.eclipse.xtext.resource.XtextResource theResource, String theOldName, com.google.inject.Injector theInjector, int theOccurredChange)
theRootState
- the root state containing the interface declaration.changedSignalOrVariable
- either the changed signal or the variable.theResource
- resource containing the prior representation of the parsed
interface declaration or nulltheOldName
- if there was a renaming - the name prior modifyingtheInjector
- the injectortheOccurredChange
- determines the change that occurredpublic InterfaceDeclSerializeCommand(State theRootState, com.google.inject.Injector theInjector, org.eclipse.xtext.resource.XtextResource theResource)
theRootState
- state whose interface declaration should be serializedtheInjector
- injectortheResource
- old resource, only needed for undoMethod Detail |
---|
public void execute()
public void redo()
public void undo()
undo
in interface Command
undo
in class AbstractCommand
protected boolean prepare()
prepare
in class AbstractCommand
protected void processCanonicalSerialization()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |