@Override
 public void deactivate() {
   if (isActive()) {
     doDeActivate();
     ActionsInput input = getWidgetModel().getActionsInput();
     for (AbstractWidgetAction a : input.getActionsList()) {
       a.dispose();
     }
     super.deactivate();
     // remove listener from all properties.
     for (String id : getWidgetModel().getAllPropertyIDs()) {
       getWidgetModel()
           .getProperty(id)
           .removeAllPropertyChangeListeners(); // removePropertyChangeListener(propertyListenerMap.get(id));
     }
     if (executionMode == ExecutionMode.RUN_MODE) {
       // remove script listeners before stopping PV.
       for (ScriptData scriptData : scriptDataList) {
         ScriptService.getInstance().unRegisterScript(scriptData);
       }
       if (hasStartedPVs) {
         // this is just a guard statement
         // if the widget was deactivated before it became fully active (and connected its pv),
         // we should not attempt to stop those pvs; this can happen with linking container
         for (Object pv : pvMap.values().toArray()) {
           ((IPV) pv).stop();
         }
       }
     }
     propertyListenerMap.clear();
     // propertyListenerMap = null;
     SingleSourceHelper.rapDeactivateBaseEditPart(this);
   }
 }
  public void deactivate() {
    if (!isActive()) return;

    getModel().removePropertyChangeListener(delegate);
    delegate = null;
    super.deactivate();
  }
 /** @generated */
 public void deactivate() {
   getTransactionalUpdateManager().uninstall();
   uninstallLinkNotationModelRefresher();
   uninstallNotationModelRefresher();
   getTransactionalUpdateManager().removeUpdatableEditPart(getDiagram().getElement(), this);
   super.deactivate();
 }
Beispiel #4
0
 /** Upon deactivation, detach from the model element as a property change listener. */
 @Override
 public void deactivate() {
   if (isActive()) {
     super.deactivate();
     ((ModelElement) getModel()).removePropertyChangeListener(this);
   }
 }
 @Override
 public void deactivate() {
   if (!isActive()) {
     return;
   }
   super.deactivate();
   ((ControlModel) getModel()).removePropertyChangeListener(this);
 }
Beispiel #6
0
  @Override
  public void deactivate() {
    super.deactivate();
    ((PropertiesChangeSupport) getModel()).removePropertyChangeListener(this);
    SharedThreadPool.getInstance()
        .execute(
            new Runnable() {

              @Override
              @TaskDescription("Clear workflow node in validation support.")
              public void run() {
                validationSupport.setWorkflowNodeAndValidation(null);
              }
            });
  }
 public void deactivate() {
   super.deactivate();
   ((DecisionTreeDiagram) getModel()).getListeners().removePropertyChangeListener(this);
 }