de.cau.cs.kieler.synccharts.contentadapter
Class TriggerListenerIDs
java.lang.Object
org.eclipse.emf.transaction.ResourceSetListenerImpl
org.eclipse.emf.transaction.TriggerListener
de.cau.cs.kieler.synccharts.contentadapter.FailSafeTriggerListener
de.cau.cs.kieler.synccharts.contentadapter.FireOnceTriggerListener
de.cau.cs.kieler.synccharts.contentadapter.TriggerListenerIDs
- All Implemented Interfaces:
- EventListener, ResourceSetListener, ResourceSetListener.Internal
public class TriggerListenerIDs
- extends FireOnceTriggerListener
A SyncCharts TriggerListener that handles different label values of
SyncCharts, namely the State label and ID and the Region ID. When either a
new State or Region is created, the label and ID are set automatically to
some unique dummy value, e.g. S0, S1, S2 for state name, _S0, _S1, _S2 for
State ID and R0, R1, R2 for Region ID.
Setting a State label explicitly will also set the State ID to that value
(stripped by whitespace) and sibling IDs of anonymous states will be changed
to a new unique one (i.e. a user set label has priority over an automatically
set ID)
- Rating

Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TriggerListenerIDs
public TriggerListenerIDs()
trigger
protected Command trigger(TransactionalEditingDomain domain,
Notification notification)
- Specified by:
trigger
in class TriggerListener
transactionAboutToCommit
public Command transactionAboutToCommit(ResourceSetChangeEvent event)
throws RollbackException
- Description copied from class:
FireOnceTriggerListener
- Setting the Transaction in the event to null will also trigger this listener
no matter what.
- Specified by:
transactionAboutToCommit
in interface ResourceSetListener
- Overrides:
transactionAboutToCommit
in class FireOnceTriggerListener
- Throws:
RollbackException