Package melnorme.util.swt.components.fields

Examples of melnorme.util.swt.components.fields.NumberField


    return SWTFactoryUtil.createGroup(parent, label,
      new GridData(SWT.FILL, SWT.CENTER, true, false));
  }
 
  protected NumberField createNumberField(String label, int textLimit) {
    return new NumberField(label, textLimit) {
      @Override
      protected void statusChanged(IStatus status) {
        updateStatus(status);
      }
    };
View Full Code Here


    createStringField(generalGroup,
      CodeFormatterConstants.FORMATTER_TAB_SIZE.key,
      createNumberField(FormatterMessages.IndentationGroup_tab_size, 2)
    );
   
    final NumberField indentationSizeField = createNumberField(
      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

TOP

Related Classes of melnorme.util.swt.components.fields.NumberField

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.