use of org.whole.lang.ui.viewers.EntityEditDomain in project whole by wholeplatform.
the class E4GraphicalViewer method linkEditDomain.
public LightweightEditDomain linkEditDomain(IEntityPartViewer viewer) {
EntityEditDomain editDomain = getEditDomain();
if (editDomain != null)
editDomain.removeViewer(this);
editDomain = viewer.getEditDomain();
editDomain.addViewer(this);
return editDomain;
}
use of org.whole.lang.ui.viewers.EntityEditDomain in project whole by wholeplatform.
the class FramesChangeEventHandler method resfreshNotation.
public void resfreshNotation(final IEntity source) {
EntityEditDomain editDomain = context.get(IEntityPartViewer.class).getEditDomain();
if (editDomain.isDisabled() || !isVariabilityDescendant(source))
return;
UISynchronize uiSynchronize = context.get(UISynchronize.class);
uiSynchronize.syncExec(() -> editDomain.setDisabled(true));
FramesUtils.updateSubset(source);
uiSynchronize.asyncExec(() -> editDomain.setDisabled(false));
}
Aggregations