@Override
 public void activate() {
   if (!isActive()) {
     ((NPNSymbolArcSN) getModel()).eAdapters().add(adapter);
     ((NPNSymbolArcSN) getModel()).getModel().eAdapters().add(adapter);
   }
   super.activate();
 }
 /** Upon activation, attach to the model element as a property change listener. */
 public void activate() {
   if (!isActive()) {
     super.activate();
     ((Notifier) getModel()).eAdapters().add(modelListener);
   }
 }
Esempio n. 3
0
 public void activate() {
   super.activate();
   if (getSource() != null) {
     getSource().addEditPartListener(this);
   }
 }