Exemplo n.º 1
0
 @Override
 public void deactivate() {
   if (isActive()) {
     super.deactivate();
     IPropertyChangeSupport entity = ((IPropertyChangeSupport) getModel());
     entity.removePropertyChangeListener(this);
   }
 }
Exemplo n.º 2
0
 @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);
   }
 }