Package org.eclipse.dltk.internal.ui.wizards.dialogfields

Examples of org.eclipse.dltk.internal.ui.wizards.dialogfields.SelectionButtonDialogField


    Label commentLabel = new Label(container, SWT.NONE);
    commentLabel.setText("Do you want to add comments?");
    commentLabel.setLayoutData(gd);

    DialogField.createEmptySpace(container);
    setCommentsButton(new SelectionButtonDialogField(SWT.CHECK));
    commentsButton.setLabelText("&Generate element comments");
    commentsButton.doFillIntoGrid(container, nColumns - 1);
  }
View Full Code Here


            applyData(getData());
          }
        }
      };

      fUseProjectSettings = new SelectionButtonDialogField(SWT.CHECK);
      fUseProjectSettings.setDialogFieldListener(listener);
      fUseProjectSettings
          .setLabelText(PreferencesMessages.PropertyAndPreferencePage_useprojectsettings_label);
      fUseProjectSettings.doFillIntoGrid(composite, 1);
      LayoutUtil.setHorizontalGrabbing(fUseProjectSettings
View Full Code Here

    final int numColumns = 3;
    final Group group = new Group(composite, SWT.None);
    group.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    group.setLayout(new GridLayout(numColumns, false));
    group.setText(NewWizardMessages.ScriptProjectWizardFirstPage_LocationGroup_title);
    fWorkspaceRadio = new SelectionButtonDialogField(SWT.RADIO);
    fWorkspaceRadio.setLabelText(NewWizardMessages.ScriptProjectWizardFirstPage_LocationGroup_workspace_desc);
    fWorkspaceRadio.doFillIntoGrid(group, numColumns);
   
    createExternalLocation(group, numColumns);
View Full Code Here

    createLocalServersGroup(group, numColumns);
  }
 
  protected void createExternalLocation(Group group, int numColumns) {

    fExternalRadio = new SelectionButtonDialogField(SWT.RADIO);
    fExternalRadio.setDialogFieldListener(this);
    fExternalRadio.setLabelText(NewWizardMessages.ScriptProjectWizardFirstPage_LocationGroup_external_desc);
    fExternalRadio.setSelection(false);
   
    fLocation = new StringButtonDialogField(this);
View Full Code Here

        }
      }
    }
   
    if (docRoots.size() > 0) {
      fLocalServerRadio = new SelectionButtonDialogField(SWT.RADIO);
      fLocalServerRadio.setDialogFieldListener(this);
      fLocalServerRadio.setLabelText(PHPUIMessages.PHPProjectWizardFirstPage_localServerLabel); //$NON-NLS-1$
      fLocalServerRadio.setSelection(false);
      fLocalServerRadio.doFillIntoGrid(group, numColumns);
      fSeverLocationList = new ComboDialogField(SWT.READ_ONLY);
View Full Code Here

    scriptGroup = new Group(result, SWT.NONE);
    scriptGroup.setLayout(new GridLayout(3, false));
    scriptGroup.setLayoutData(gd);
    scriptGroup.setText(getScriptLabel());

    customConsole = new SelectionButtonDialogField(SWT.CHECK);
    customConsole.setLabelText("Use custom console location");
    customConsole.doFillIntoGrid(scriptGroup, 3);
    customConsole.setDialogFieldListener(new org.eclipse.dltk.internal.ui.wizards.dialogfields.IDialogFieldListener() {
      @Override
      public void dialogFieldChanged(org.eclipse.dltk.internal.ui.wizards.dialogfields.DialogField field) {
View Full Code Here

        docRoots.add(docRoot);
      }
    }

    if (docRoots.size() > 0) {
      fLocalServerRadio = new SelectionButtonDialogField(SWT.RADIO);
      fLocalServerRadio.setDialogFieldListener(this);
      fLocalServerRadio.setLabelText(PHPUIMessages.PHPProjectWizardFirstPage_localServerLabel); //$NON-NLS-1$
      fLocalServerRadio.setSelection(false);
      fLocalServerRadio.doFillIntoGrid(group, numColumns);
      fSeverLocationList = new ComboDialogField(SWT.READ_ONLY);
      fSeverLocationList.setLabelText("Target directory");
      fSeverLocationList.doFillIntoGrid(group, numColumns );
      GridData data = (GridData) fSeverLocationList.getLabelControl(null).getLayoutData();
      data.widthHint = 120;
      fSeverLocationList.getLabelControl(null).setLayoutData(data);
     
      fSeverLocationList.setEnabled(false);
      docRootArray = new String[docRoots.size()];
      docRoots.toArray(docRootArray);
      fSeverLocationList.setItems(docRootArray);
      fSeverLocationList.selectItem(initialSelection);
      fLocalServerRadio.attachDialogField(fSeverLocationList);
      fWorkspaceRadio.setSelection(false);
      fLocalServerRadio.setSelection(true);
      LayoutUtil.setHorizontalGrabbing(fSeverLocationList.getComboControl(null));
     
      fCustomHost = new SelectionButtonDialogField(SWT.CHECK);
      fCustomHost.setDialogFieldListener(this);
      fCustomHost.setLabelText("Custom hostname:");
      fCustomHost.doFillIntoGrid(group, numColumns-1);
     
      fVirtualHost = new Text(group, SWT.SINGLE | SWT.BORDER);
View Full Code Here

    layout.marginHeight = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_MARGIN);

    composite.setLayout(layout);
    composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));

    overrideComposer = new SelectionButtonDialogField(SWT.CHECK);
    overrideComposer.setLabelText("Override composer.json values");
    overrideComposer.doFillIntoGrid(composite, 3);
    overrideComposer.setDialogFieldListener(new IDialogFieldListener() {
      @Override
      public void dialogFieldChanged(DialogField field) {
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.wizards.dialogfields.SelectionButtonDialogField

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.