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

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


          //
          DialogFieldUtils.fillControls(locationGroup, m_warNameField, columns, 60);
        }
        // server path field
        {
          m_serverPathField = new StringButtonDialogField(new IStringButtonAdapter() {
            public void changeControlPressed(DialogField field) {
              DirectoryDialog directoryDialog = new DirectoryDialog(getShell());
              directoryDialog.setFilterPath(m_serverPathField.getText());
              String newPath = directoryDialog.open();
              if (newPath != null) {
View Full Code Here


    setTitle("GWT JUnit Test Case");
    setDescription("Create GWT JUnit Test Case");
    setImageDescriptor(Activator.getImageDescriptor("wizards/JUnit/banner.png"));
    //
    m_classUnderTestStatus = new Status(IStatus.OK, Activator.PLUGIN_ID, IStatus.OK, null, null);
    m_classUnderTestField = new StringButtonDialogField(new IStringButtonAdapter() {
      public void changeControlPressed(DialogField field) {
        handleChooseClassUnderTest();
      }
    });
  }
View Full Code Here

      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) {
View Full Code Here

      super(parent, style, messageContainer);
      int numColumns = 3;
      GridLayoutFactory.create(this).columns(numColumns);
      // project
      {
        m_projectField = new StringButtonDialogField(new IStringButtonAdapter() {
          public void changeControlPressed(DialogField field) {
            chooseProject();
          }
        });
        m_projectField.setDialogFieldListener(m_validateListener);
        m_projectField.setLabelText("Project:");
        m_projectField.setButtonLabel("&Browse...");
        DialogFieldUtils.fillControls(this, m_projectField, numColumns, 60);
      }
      // module
      {
        m_moduleField = new StringButtonDialogField(new IStringButtonAdapter() {
          public void changeControlPressed(DialogField field) {
            chooseModule();
          }
        });
        m_moduleField.setDialogFieldListener(m_validateListener);
View Full Code Here

      super(parent, style, messageContainer);
      int rootColumns = 3;
      GridLayoutFactory.create(this).columns(rootColumns);
      // project
      {
        m_projectField = new StringButtonDialogField(new IStringButtonAdapter() {
          public void changeControlPressed(DialogField field) {
            chooseProject();
          }
        });
        m_projectField.setDialogFieldListener(m_validateListener);
        m_projectField.setLabelText("Project:");
        m_projectField.setButtonLabel("&Browse...");
        DialogFieldUtils.fillControls(this, m_projectField, rootColumns, 60);
      }
      // module
      {
        m_moduleField = new StringButtonDialogField(new IStringButtonAdapter() {
          public void changeControlPressed(DialogField field) {
            chooseModule();
          }
        });
        m_moduleField.setDialogFieldListener(m_validateListener);
        m_moduleField.setButtonLabel("&Search...");
        doCreateField(this, m_moduleField, rootColumns, "Module:", null);
      }
      // module html
      {
        m_moduleHtmlField = new StringButtonDialogField(new IStringButtonAdapter() {
          public void changeControlPressed(DialogField field) {
            chooseModuleHtml();
          }
        });
        m_moduleHtmlField.setButtonLabel("&Browse...");
View Full Code Here

      sourceField.setUpdateListener(m_validateListener);
      DialogFieldUtils.fillControls(this, sourceField, COLUMNS, 60);
    }
    // package name
    {
      packageField = new StringButtonDialogField(new IStringButtonAdapter() {
        public void changeControlPressed(DialogField field) {
          packageButtonPressed();
        }
      });
      packageField.setDialogFieldListener(m_validateListener);
      packageField.setLabelText("&Package name:");
      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
    {
      factoryField = new CheckDialogField();
      factoryField.setDialogFieldListener(m_validateListener);
      factoryField.setLabelText("use ClientFactory name:");
      factoryField.doFillIntoGrid(this, 1);
      //
      factoryNameField = new StringButtonDialogField(new IStringButtonAdapter() {
        public void changeControlPressed(DialogField field) {
          factoryButtonPressed();
        }
      });
      factoryNameField.setDialogFieldListener(m_validateListener);
View Full Code Here

TOP

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

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.