title: SWT: error in changing check box value programmatically
body: <p>My intention is to change the value of check box and based on a condition that is set through the drop box. I am stuck at this place. But this is not working as expected.</p>
  
  <pre><code>public void notifyChanged(IPropertyEditor otherEditor) {
      ConnectionType changedConnectionType = getConnectionType(otherEditor);
      if (!ConnectionType.UNDEFINED.equals(changedConnectionType)) {
          connectionType = changedConnectionType;
          updateChange(false);
      }
      if (button != null &amp;&amp; !ConnectionType.UNDEFINED.equals(connectionType)) {
          button.setEnabled(canEnable(connectionType));
          updateChange(true);
      }
  }
  
  
  private void updateChange(boolean selected){
      this.selected=selected;
      setChanged();
      notifyObservers();
  }
  </code></pre>