use of org.whole.lang.ui.editparts.ModelObserver in project whole by wholeplatform.
the class E4GraphicalViewer method updateModelObserver.
protected void updateModelObserver(IEntity entity) {
ICompoundModel model = entity.wGetModel().getCompoundModel();
if (modelObserver != null && modelObserver.getModel() != model) {
modelObserver.dispose();
modelObserver = null;
}
if (modelObserver == null)
modelObserver = new ModelObserver(model, this);
}
use of org.whole.lang.ui.editparts.ModelObserver in project whole by wholeplatform.
the class E4TreeViewer method updateModelObserver.
protected void updateModelObserver(IEntity entity) {
ICompoundModel model = entity.wGetModel().getCompoundModel();
if (modelObserver != null && modelObserver.getModel() != model) {
modelObserver.dispose();
modelObserver = null;
}
if (modelObserver == null)
modelObserver = new ModelObserver(model, this);
}
Aggregations