private void applySetting() {
   listener.applySetting(
       tName.getText(),
       tDefault.getText(),
       tID.getText(),
       cRequired.getSelection(),
       cReference.getText(),
       cType.getText());
   listener.fillSettings(tSettings);
   setSettingStatus(tSettings.getSelectionCount() > 0);
   bRemove.setEnabled(tSettings.getSelectionCount() > 0);
 }
  private void initialize() {
    createGroup1();
    this.setLayout(new FillLayout()); // Generated
    setSize(new Point(825, 445));

    bApply.setEnabled(false);
    bRemove.setEnabled(false);
    cType.setItems(listener.getTypes());
    setSettingStatus(false);
    listener.fillSettings(tSettings);
    setToolTipText();
  }
 private void setSettingStatus(boolean enabled) {
   tName.setEnabled(enabled);
   tDefault.setEnabled(enabled);
   tID.setEnabled(enabled);
   cRequired.setEnabled(enabled);
   cReference.setEnabled(enabled);
   cType.setEnabled(enabled);
   bNotes.setEnabled(enabled);
   if (enabled) {
     tName.setText(listener.getName());
     tDefault.setText(listener.getDefaultValue());
     tID.setText(listener.getID());
     cRequired.setSelection(listener.isRequired());
     DocumentationListener.setCheckbox(
         cReference, listener.getReferences(listener.getID()), listener.getReference());
     cType.select(cType.indexOf(listener.getType()));
     tName.setFocus();
     getShell().setDefaultButton(bApply);
   }
   bApply.setEnabled(false);
 }