@Override public void deactivate() { if (isActive()) { super.deactivate(); IPropertyChangeSupport entity = ((IPropertyChangeSupport) getModel()); entity.removePropertyChangeListener(this); } }
@Override public void activate() { /* Activate the Edit part if not active and then hook into the model */ if (!isActive()) { super.activate(); IPropertyChangeSupport entity = ((IPropertyChangeSupport) getModel()); entity.addPropertyChangeListener(this); } }