Package melnorme.util.swt.components

Examples of melnorme.util.swt.components.IFieldValueListener


      FormatterMessages.IndentationGroup_indent_size, 2);
    createStringField(generalGroup,
      CodeFormatterConstants.FORMATTER_INDENTATION_SPACES_SIZE.key,
      indentationSizeField
    );
    IFieldValueListener indentModeValueListener = new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        boolean enabled = !areEqual(indentModeField.getFieldValue(), CodeFormatterConstants.TAB);
        indentationSizeField.setEnabled(enabled);
      }
    };
    indentModeField.addValueChangedListener(indentModeValueListener);
    indentModeValueListener.fieldValueChanged();
  }
View Full Code Here


    striketroughCheckboxField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_strikethrough);
    striketroughCheckboxField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
    underlineCheckboxField = new CheckBoxField(PreferencesMessages.DLTKEditorPreferencePage_underline);
    underlineCheckboxField.createComponent(itemEditorComposite, gdFillDefaults().indent(20, 0).create());
   
    enableField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        SourceColoringElement item = getSelectedColoringItem();
        boolean enabled = enableField.getBooleanFieldValue();
        getOverlayPrefStore().setValue(item.getEnableKey(), enabled);
       
        setColoringEditorControlsEnabled(enabled);
      }
    });
   
    colorField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        SourceColoringElement item = getSelectedColoringItem();
        PreferenceConverter.setValue(getOverlayPrefStore(), item.getColorKey(), colorField.getFieldValue());
      }
    });
    boldCheckboxField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        SourceColoringElement item = getSelectedColoringItem();
        getOverlayPrefStore().setValue(item.getBoldKey(), boldCheckboxField.getBooleanFieldValue());
      }
    });
    italicCheckboxField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        SourceColoringElement item = getSelectedColoringItem();
        getOverlayPrefStore().setValue(item.getItalicKey(), italicCheckboxField.getBooleanFieldValue());
      }
    });
    striketroughCheckboxField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        SourceColoringElement item = getSelectedColoringItem();
        getOverlayPrefStore().setValue(item.getStrikethroughKey(),
          striketroughCheckboxField.getBooleanFieldValue());
      }
    });
    underlineCheckboxField.addValueChangedListener(new IFieldValueListener() {
      @Override
      public void fieldValueChanged() {
        SourceColoringElement item = getSelectedColoringItem();
        getOverlayPrefStore().setValue(item.getUnderlineKey(), underlineCheckboxField.getBooleanFieldValue());
      }
View Full Code Here

     
      testTimeout = new SpinnerNumberField("Test Max Time (ms):");
      testTimeout.createComponentInlined(topControl);
      testTimeout.setValueMinimum(100).setValueMaximum(360000).setValueIncrement(10);
     
      ctEnablement.addValueChangedListener(new IFieldValueListener() {
        @Override
        public void fieldValueChanged() {
          updateComponentForEnableButtonChange();
        }
      });
View Full Code Here

TOP

Related Classes of melnorme.util.swt.components.IFieldValueListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.