Package tools.refinery.interpreter.api
Interface InterpreterModelUpdateListener
public interface InterpreterModelUpdateListener
Listener interface for model changes affecting different levels of the Refinery Interpreter architecture.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Possible notification levels for changes -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
This may be queried only ONCE (!!!) at the registration of the listener.void
notifyChanged
(InterpreterModelUpdateListener.ChangeLevel changeLevel) Called after each change with also sending the level of change.
-
Method Details
-
notifyChanged
Called after each change with also sending the level of change. Only called if the change level is at least at the level returned by getLevel().- Parameters:
changeLevel
-
-
getLevel
InterpreterModelUpdateListener.ChangeLevel getLevel()This may be queried only ONCE (!!!) at the registration of the listener. NOTE: this allows us to only create engine level change providers if there is someone who needs it.- Returns:
- the change level where you want notifications
-