Package com._1c.g5.modeling.xtext.model
Interface IModelChangeSource
-
- All Known Subinterfaces:
IModelChangeEventBroker
- All Known Implementing Classes:
DefaultModelChangeEventBroker
public interface IModelChangeSource
The event source. RegistersIModelChangeListener
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(IModelChangeListener listener)
Add a listener to the event source.void
removeListener(IModelChangeListener listener)
Immediately removes a registered listener from the source.
-
-
-
Method Detail
-
addListener
void addListener(IModelChangeListener listener)
Add a listener to the event source. Listeners will not be added twice. Subsequent calls toaddListener(IModelChangeListener)
will not affect the number of events that the listener receives.removeListener(IModelChangeListener)
will remove the listener immediately independently from the number of invocations ofaddListener(IModelChangeListener)
for the given listener.- Parameters:
listener
- the listener to be registered. May not benull
.
-
removeListener
void removeListener(IModelChangeListener listener)
Immediately removes a registered listener from the source. However ifremoveListener(IModelChangeListener)
is called during a notification, the removed listener will still receive the event. If the listener has not been registered before, theremoveListener(IModelChangeListener)
does nothing.- Parameters:
listener
- the listener to be removed. May not benull
.
-
-