コード例 #1
0
 @Override
 public void deactivate() {
   if (isActive()) {
     super.deactivate();
     IPropertyChangeSupport entity = ((IPropertyChangeSupport) getModel());
     entity.removePropertyChangeListener(this);
   }
 }
コード例 #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);
   }
 }