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

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


    return status;
  }

  protected void createFileNameControls() {

    fileNameField = new StringDialogField();
    fileNameField.setLabelText("F&ilename:");
    fileNameField.doFillIntoGrid(container, nColumns - 1);
    DialogField.createEmptySpace(container);

    if (initialFilename != null) {
View Full Code Here


  protected void createNamespaceControls() {

    // TODO: Create dialog to get namespases.

    namespaceField = new StringDialogField();
    namespaceField.setLabelText("Na&mespace:");
    // namespaceField.setButtonLabel("Bro&wse...");
    namespaceField.doFillIntoGrid(container, nColumns - 1);
    DialogField.createEmptySpace(container);
View Full Code Here

    });
  }

  protected void createNameControls() {

    classNameField = new StringDialogField();
    classNameField.setLabelText("&Name:");
    classNameField.doFillIntoGrid(container, nColumns - 1);
    DialogField.createEmptySpace(container);

    if (initialClassName != null && initialClassName.length() > 0) {
View Full Code Here

    Composite control = new Composite(parent, SWT.NONE);
   
    int numColumns = 3;
    GridLayoutFactory.fillDefaults().numColumns(numColumns).applyTo(control);
   
    projectNameField = new StringDialogField();
    projectNameField.setLabelText("Project name");
    projectNameField.doFillIntoGrid(control, numColumns);
    LayoutUtil.setHorizontalGrabbing(projectNameField.getTextControl(null));
   
    projectNameField.setDialogFieldListener(new IDialogFieldListener() {
View Full Code Here

    nameComposite.setFont(composite.getFont());
    nameComposite.setLayout(new GridLayout(2, false));
    nameComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
   
    // text field for project vendor name
    vendorField = new StringDialogField();
    vendorField.setLabelText("Vendor name");
    vendorField.setDialogFieldListener(this);
    vendorField.doFillIntoGrid(nameComposite, 2);
    LayoutUtil.setHorizontalGrabbing(vendorField.getTextControl(null));
   
    // text field for project type
    typeField = new StringDialogField();
    typeField.setLabelText("Type");
    typeField.setDialogFieldListener(this);
    typeField.doFillIntoGrid(nameComposite, 2);
    LayoutUtil.setHorizontalGrabbing(typeField.getTextControl(null));
   
    ControlDecoration decoration = new ControlDecoration(typeField.getTextControl(), SWT.TOP | SWT.LEFT);
   
        FieldDecoration indicator = FieldDecorationRegistry.getDefault().
                getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);

        decoration.setImage(indicator.getImage());
        decoration.setDescriptionText(indicator.getDescription() + "(Ctrl+Space)");
        decoration.setShowOnlyOnFocus(true);
   
    new AutoCompleteField(typeField.getTextControl(), new TextContentAdapter(), ComposerConstants.TYPES);
   
   
    // text field for project description
    descriptionField = new StringDialogField();
    descriptionField.setLabelText("Description");
    descriptionField.setDialogFieldListener(this);
    descriptionField.doFillIntoGrid(nameComposite, 2);
    LayoutUtil.setHorizontalGrabbing(descriptionField.getTextControl(null));
   
    // text field for project description
    keywordField = new StringDialogField();
    keywordField.setLabelText("Keywords");
    keywordField.setDialogFieldListener(this);
    keywordField.doFillIntoGrid(nameComposite, 2);
    LayoutUtil.setHorizontalGrabbing(keywordField.getTextControl(null));
   
   
    // text field for project description
    licenseField = new StringDialogField();
    licenseField.setLabelText("License");
    licenseField.setDialogFieldListener(this);
    licenseField.doFillIntoGrid(nameComposite, 2);
    LayoutUtil.setHorizontalGrabbing(licenseField.getTextControl(null));
   
View Full Code Here

    nameComposite.setFont(composite.getFont());
    nameComposite.setLayout(new GridLayout(2, false));
    nameComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
   
    // text field for project vendor name
    namespaceField = new StringDialogField();
    namespaceField.setLabelText("Namespace");
    namespaceField.setDialogFieldListener(this);
    namespaceField.doFillIntoGrid(nameComposite, 2);
    LayoutUtil.setHorizontalGrabbing(namespaceField.getTextControl(null));
View Full Code Here

    final Composite nameComposite = new Composite(composite, SWT.NONE);
    nameComposite.setFont(composite.getFont());
    nameComposite.setLayout(new GridLayout(2, false));
    nameComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    // text field for project name
    fNameField = new StringDialogField();
    fNameField
        .setLabelText(NewWizardMessages.ScriptProjectWizardFirstPage_NameGroup_label_text);
    fNameField.setDialogFieldListener(this);
    setName(initialName);
    fNameField.doFillIntoGrid(nameComposite, 2);
View Full Code Here

    Composite container = new Composite(parent, SWT.NONE);
    GridLayoutFactory.fillDefaults().numColumns(3).equalWidth(false).applyTo(container);
    GridDataFactory.fillDefaults().grab(true, true).applyTo(container);

    projectNameField = new StringDialogField();
    projectNameField.setLabelText("Project name");
    projectNameField.doFillIntoGrid(container, 3);
    projectNameField.setDialogFieldListener(new IDialogFieldListener() {

      @Override
View Full Code Here

TOP

Related Classes of org.eclipse.dltk.internal.ui.wizards.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.