public interface IStatusChangeListener
Do not use this interface when model modification are required. In this
case prefer use of IStatusChangeHandler
Each time the a model transaction is commited, a IStatusChangeEvent
class is computed and given to each IStatusChangeListener
that is
connected to the modeling session.
Example of adding a new listener in Modelio.
Modelio.getInstance().getModelingSession().addStatusChangeListener (listener);
MyModelChangeListener listener = new MyModelChangeListener(...);
Example of removing an existing listener from Modelio.
Modelio.getInstance().getModelingSession().removeStatusChangeListener (listener);
MyModelChangeListener listener = ...;
The given IStatusChangeEvent
is used to get the delta between
the model before the transaction execution and the model after.
IStatusChangeEvent
Modifier and Type | Method and Description |
---|---|
void |
statusChanged(IModelingSession session,
IStatusChangeEvent event)
Invoked when the status has changed.
|
void statusChanged(IModelingSession session, IStatusChangeEvent event)
The session
parameter is the modeling session where the event has occured.
modifications. The event parameter provide the changes made in the model elements status.
session
- The modeling session.event
- Delta between the beginning and the end of the transaction.