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

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


        GridDataFactory.create(locationGroup).grabH().fillH();
        GridLayoutFactory.create(locationGroup).columns(columns);
        locationGroup.setText("Location");
        // WAR name field
        {
          m_warNameField = new StringDialogField();
          m_warNameField.setDialogFieldListener(m_validateListener);
          m_warNameField.setLabelText("WAR file name:");
          //
          DialogFieldUtils.fillControls(locationGroup, m_warNameField, columns, 60);
        }
View Full Code Here


        }
      }
      // prepare value
      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 key = entry.getKey();
        DialogField dialogField = entry.getValue();
        // prepare value
        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);
View Full Code Here

      m_sourceFolderField.setUpdateListener(m_validateListener);
      DialogFieldUtils.fillControls(this, m_sourceFolderField, COLUMNS, 60);
    }
    // module name
    {
      m_moduleField = new StringDialogField();
      m_moduleField.setDialogFieldListener(m_validateListener);
      m_moduleField.setLabelText("&Module name:");
      DialogFieldUtils.fillControls(this, m_moduleField, COLUMNS, 60);
    }
    // package name
    {
      m_packageField = new StringDialogField();
      m_packageField.setDialogFieldListener(m_validateListener);
      m_packageField.setLabelText("&Package name:");
      DialogFieldUtils.fillControls(this, m_packageField, COLUMNS, 60);
    }
    // entry point
View Full Code Here

  protected void createControls(Composite container) {
    m_fieldsContainer = container;
    GridLayoutFactory.create(container).columns(3);
    // name
    {
      m_nameField = new StringDialogField();
      doCreateField(m_nameField, "&Name:");
    }
    // name
    {
      m_imageField = new StringButtonDialogField(new IStringButtonAdapter() {
        public void changeControlPressed(DialogField field) {
          FileDialog fileDialog = new FileDialog(getShell(), SWT.OPEN);
          fileDialog.setFilterPath(m_imageField.getText());
          String newPath = fileDialog.open();
          if (newPath != null) {
            m_imageField.setText(newPath);
          }
        }
      });
      m_imageField.setButtonLabel("&Browse...");
      doCreateField(m_imageField, "&Image path:");
    }
    // display: x
    {
      m_displayField_x = new StringDialogField();
      doCreateField(m_displayField_x, "Display &x:");
    }
    // display: y
    {
      m_displayField_y = new StringDialogField();
      doCreateField(m_displayField_y, "Display &y:");
    }
    // display: width
    {
      m_displayField_width = new StringDialogField();
      doCreateField(m_displayField_width, "Display &width:");
    }
    // display: height
    {
      m_displayField_height = new StringDialogField();
      doCreateField(m_displayField_height, "Display &height:");
    }
  }
View Full Code Here

        m_moduleHtmlField.setButtonLabel("&Browse...");
        doCreateField(this, m_moduleHtmlField, rootColumns, "HTML:", null);
      }
      // URL
      {
        m_parametersField = new StringDialogField();
        doCreateField(
            this,
            m_parametersField,
            rootColumns,
            "Parameters:",
            "Parameters, for example: ?module=myModule&&&objId=12345");
      }
      // URL
      {
        m_urlField = new StringDialogField();
        doCreateField(
            this,
            m_urlField,
            rootColumns,
            "URL:",
            "URL to the external server (use with -noserver flag, leave empty in usual cases)");
      }
      // HostedMode flags
      {
        int flagsColumns = 3;
        Group shellFlagsGroup = new Group(this, SWT.NONE);
        GridLayoutFactory.create(shellFlagsGroup).columns(flagsColumns);
        GridDataFactory.create(shellFlagsGroup).spanH(rootColumns).fillH();
        shellFlagsGroup.setText("HostedMode flags (hover over label for description)");
        // -noserver
        {
          m_noServerField = new BooleanDialogField();
          doCreateField(
              shellFlagsGroup,
              m_noServerField,
              flagsColumns,
              "-noserver",
              "Prevents the embedded web server from running");
        }
        // -port
        {
          m_portField = new StringDialogField();
          doCreateField(
              shellFlagsGroup,
              m_portField,
              flagsColumns,
              "-port",
              "Specifies the TCP port for the embedded web server (defaults to 8888)");
        }
        // -whitelist
        {
          m_whiteListField = new StringDialogField();
          doCreateField(
              shellFlagsGroup,
              m_whiteListField,
              flagsColumns,
              "-whitelist",
              "Allows the user to browse URLS that match the specified regexes (comma or space separated)");
        }
        // -blacklist
        {
          m_blackListField = new StringDialogField();
          doCreateField(
              shellFlagsGroup,
              m_blackListField,
              flagsColumns,
              "-blacklist",
View Full Code Here

      m_clientPackageField.setDialogFieldListener(m_validateListener);
      DialogFieldUtils.fillControls(this, m_clientPackageField, columns, 60);
    }
    // service name
    {
      m_serviceField = new StringDialogField();
      m_serviceField.setDialogFieldListener(m_validateListener);
      m_serviceField.setLabelText("Service &name:");
      DialogFieldUtils.fillControls(this, m_serviceField, columns, 60);
      m_serviceField.getTextControl(null).setFocus();
    }
View Full Code Here

      m_sourceFolderField.setUpdateListener(m_validateListener);
      DialogFieldUtils.fillControls(this, m_sourceFolderField, columns, 60);
    }
    // module name
    {
      m_moduleField = new StringDialogField();
      m_moduleField.setDialogFieldListener(m_validateListener);
      m_moduleField.setLabelText("&Module name:");
      DialogFieldUtils.fillControls(this, m_moduleField, columns, 60);
    }
    // package name
    {
      m_packageField = new StringDialogField();
      m_packageField.setDialogFieldListener(m_validateListener);
      m_packageField.setLabelText("&Package name:");
      DialogFieldUtils.fillControls(this, m_packageField, columns, 60);
    }
    // HTML package
View Full Code Here

      protected void createControls(Composite container) {
        m_fieldsContainer = container;
        GridLayoutFactory.create(container).columns(2);
        // name
        {
          m_nameField = new StringDialogField();
          doCreateField(m_nameField, ModelMessages.ExposePropertyAction_dialogPropertyLabel);
          // initial name
          {
            Class<?> componentClass = m_object.getDescription().getComponentClass();
            String shortClassName = CodeUtils.getShortClass(componentClass.getName());
View Full Code Here

      packageField.setButtonLabel("&Browse...");
      DialogFieldUtils.fillControls(this, packageField, COLUMNS, 60);
    }
    // view name
    {
      viewField = new StringDialogField();
      viewField.setDialogFieldListener(m_validateListener);
      viewField.setLabelText("&View name:");
      DialogFieldUtils.fillControls(this, viewField, COLUMNS, 60);
    }
    // Java template (NOT UiBinder)
    {
      new Label(this, SWT.NONE);// filler
      Composite composite = new Composite(this, SWT.NONE);
      composite.setLayout(new GridLayout(2, true));
      useUiBinderRadio = new Button(composite, SWT.RADIO);
      useUiBinderRadio.setText("use UiBinder template");
      useJavaRadio = new Button(composite, SWT.RADIO);
      useJavaRadio.setText("use Java template");
      GridDataFactory.create(composite).alignHF().spanH(COLUMNS - 1);
    }
    // place name
    {
      placeField = new CheckDialogField();
      placeField.setDialogFieldListener(m_validateListener);
      placeField.setLabelText("create Place name:");
      placeField.doFillIntoGrid(this, 1);
      //
      placeNameField = new StringDialogField();
      placeNameField.setDialogFieldListener(m_validateListener);
      GridDataFactory.create(placeNameField.getTextControl(this)).alignHF().spanH(COLUMNS - 1);
    }
    // activity name
    {
      activityField = new CheckDialogField();
      activityField.setDialogFieldListener(m_validateListener);
      activityField.setLabelText("create Activity name:");
      activityField.doFillIntoGrid(this, 1);
      //
      activityNameField = new StringDialogField();
      activityNameField.setDialogFieldListener(m_validateListener);
      GridDataFactory.create(activityNameField.getTextControl(this)).alignHF().spanH(COLUMNS - 1);
    }
    // factory name
    {
View Full Code Here

TOP

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

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.