public interface IStatusChangeHandler
Use this interface when model modification are required.
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().addStatusHandler (handler);
MyStatusChangeHandler handler = new MyModelChangeHandler(...);
Example of removing an existing listener from Modelio.
Modelio.getInstance().getModelingSession().removeStatusHandler (handler);
MyStatusChangeHandler handler = ...;
The given IStatusChangeEvent
is used to get the elements that have a status
change.
IStatusChangeEvent
Modifier and Type | Method and Description |
---|---|
void |
handleStatusChange(IModelingSession session,
IStatusChangeEvent event)
Invoked when the model has changed.
|
void handleStatusChange(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.
session
- The modeling session.event
- Delta between the beginning and the end of the transaction.