Package org.eclipse.wb.internal.core.utils.dialogfields

Examples of org.eclipse.wb.internal.core.utils.dialogfields.ComboDialogField


        GridDataFactory.create(compilerGroup).grabH().fillH();
        GridLayoutFactory.create(compilerGroup).columns(columns);
        compilerGroup.setText("GWT compiler");
        // compiler style field
        {
          m_compilerStyleField = new ComboDialogField(SWT.READ_ONLY);
          m_compilerStyleField.setLabelText("Style:");
          m_compilerStyleField.setItems(new String[]{"OBFUSCATED", "PRETTY", "DETAILED"});
          m_compilerStyleField.setDialogFieldListener(m_validateListener);
          //
          DialogFieldUtils.fillControls(compilerGroup, m_compilerStyleField, columns, 60);
        }
        // maximum memory
        {
          m_compilerMaxMemoryField = new ComboDialogField(SWT.NONE);
          m_compilerMaxMemoryField.setLabelText("Maximum memory:");
          m_compilerMaxMemoryField.setItems(new String[]{"128m", "256m", "512m", "1024m"});
          m_compilerMaxMemoryField.setDialogFieldListener(m_validateListener);
          //
          DialogFieldUtils.fillControls(compilerGroup, m_compilerMaxMemoryField, columns, 60);
View Full Code Here


      String value = m_properties.getProperty(key, defaultValue);
      if (dialogField instanceof StringDialogField) {
        StringDialogField stringDialogField = (StringDialogField) dialogField;
        stringDialogField.setTextWithoutUpdate(value);
      } else if (dialogField instanceof ComboDialogField) {
        ComboDialogField comboDialogField = (ComboDialogField) dialogField;
        comboDialogField.setTextWithoutUpdate(value);
      } else {
        throw new IllegalArgumentException("Unknown type of DialogField: " + dialogField);
      }
    }
View Full Code Here

        String value;
        if (dialogField instanceof StringDialogField) {
          StringDialogField stringDialogField = (StringDialogField) dialogField;
          value = stringDialogField.getText();
        } else if (dialogField instanceof ComboDialogField) {
          ComboDialogField comboDialogField = (ComboDialogField) dialogField;
          value = comboDialogField.getText();
        } else {
          throw new IllegalArgumentException("Unknown type of DialogField: " + dialogField);
        }
        // put value
        m_properties.put(key, value);
View Full Code Here

        GridLayoutFactory.create(compilerGroup).columns(numColumns);
        GridDataFactory.create(compilerGroup).spanH(numColumns).fillH();
        compilerGroup.setText("GWTCompiler flags (hover over label for description)");
        // -logLevel
        {
          m_logLevelField = new ComboDialogField(SWT.READ_ONLY);
          m_logLevelField.setItems(new String[]{
              "ERROR",
              "WARN",
              "INFO",
              "TRACE",
              "DEBUG",
              "SPAM",
              "ALL"});
          doCreateField(
              compilerGroup,
              m_logLevelField,
              numColumns,
              "-logLevel",
              "The level of logging detail: ERROR, WARN, INFO, TRACE, DEBUG, SPAM, or ALL");
          UiUtils.setVisibleItemCount(m_logLevelField.getComboControl(null), 10);
        }
        // -gen
        {
          m_dirGenField = new StringButtonDirectoryDialogField();
          doCreateField(
              compilerGroup,
              m_dirGenField,
              numColumns,
              "-gen",
              "The directory into which generated files will be written for review");
        }
        // -out
        {
          m_dirOutField = new StringButtonDirectoryDialogField();
          doCreateField(
              compilerGroup,
              m_dirOutField,
              numColumns,
              "-out",
              "The directory to write output files into (defaults to current)");
        }
        // -style
        {
          m_compilerStyleField = new ComboDialogField(SWT.READ_ONLY);
          m_compilerStyleField.setItems(new String[]{"OBFUSCATED", "PRETTY", "DETAILED"});
          doCreateField(
              compilerGroup,
              m_compilerStyleField,
              numColumns,
View Full Code Here

              "-blacklist",
              "Prevents the user browsing URLS that match the specified regexes (comma or space separated)");
        }
        // -logLevel
        {
          m_logLevelField = new ComboDialogField(SWT.READ_ONLY);
          m_logLevelField.setItems(new String[]{
              "ERROR",
              "WARN",
              "INFO",
              "TRACE",
View Full Code Here

TOP

Related Classes of org.eclipse.wb.internal.core.utils.dialogfields.ComboDialogField

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.