@Override public void deactivate() { if (isActive()) { ((NPNSymbolArcSN) getModel()).eAdapters().remove(adapter); ((NPNSymbolArcSN) getModel()).getModel().eAdapters().remove(adapter); } super.deactivate(); }
/** Upon deactivation, detach from the model element as a property change listener. */ public void deactivate() { if (isActive()) { super.deactivate(); ((Notifier) getModel()).eAdapters().remove(modelListener); } }
public void deactivate() { super.deactivate(); if (getSource() != null) { getSource().removeEditPartListener(this); } }