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

Examples of org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonStatusDialogField


  public NewAspectWizardPage() {
    super(PAGE_NAME);
    setTitle("Prose Aspect");
    setDescription("Create or extend a Prose aspect.");

    fPackageDialogField = new StringButtonStatusDialogField(new IStringButtonAdapter() {
      public void changeControlPressed(DialogField field) {
        IPackageFragment pack= choosePackage()
        if (pack != null) {
          fPackageDialogField.setText(pack.getElementName());
        }
View Full Code Here


        fCreatedType = null;

        TypeFieldsAdapter adapter = new TypeFieldsAdapter();

        fPackageDialogField = new StringButtonStatusDialogField(adapter);
        fPackageDialogField.setDialogFieldListener(adapter);
        fPackageDialogField.setLabelText(getPackageLabel());
        fPackageDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_package_button);
        fPackageDialogField.setStatusWidthHint(NewWizardMessages.NewTypeWizardPage_default);
View Full Code Here

        fCreatedType = null;

        TypeFieldsAdapter adapter = new TypeFieldsAdapter();

        fPackageDialogField = new StringButtonStatusDialogField(adapter);
        fPackageDialogField.setDialogFieldListener(adapter);
        fPackageDialogField.setLabelText(getPackageLabel());
        fPackageDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_package_button);
        fPackageDialogField.setStatusWidthHint(NewWizardMessages.NewTypeWizardPage_default);
View Full Code Here

    setTitle("New GWT Module");
    setDescription("Create a new GWT Module.");

    ModuleDialogFieldAdapter adapter = new ModuleDialogFieldAdapter();

    this.modulePackageField = new StringButtonStatusDialogField(adapter);
    this.modulePackageField.setDialogFieldListener(adapter);
    this.modulePackageField.setLabelText("Package:");
    this.modulePackageField
        .setButtonLabel(NewWizardMessages.NewTypeWizardPage_package_button);
    this.modulePackageField
View Full Code Here

    javaLayout.numColumns = 4;
    javaGroup.setLayout(javaLayout);
    javaGroup.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));

    PackageButtonAdapter packageButtonAdapter = new PackageButtonAdapter();
    _packageDialogField = new StringButtonStatusDialogField(packageButtonAdapter);
    _packageDialogField.setDialogFieldListener(packageButtonAdapter);
    _packageDialogField.setLabelText(NewWizardMessages.NewTypeWizardPage_package_label);
    _packageDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_package_button);
    _packageDialogField.setStatusWidthHint(NewWizardMessages.NewTypeWizardPage_default);
    _packageDialogField.doFillIntoGrid(javaGroup, 4);
    Text packageText = _packageDialogField.getTextControl(null);
    LayoutUtil.setWidthHint(packageText, convertWidthInCharsToPixels(40));
    LayoutUtil.setHorizontalGrabbing(packageText);
    // JavaPackageCompletionProcessor packageCompletionProcessor= new
    // JavaPackageCompletionProcessor();
    // ControlContentAssistHelper.createTextContentAssistant(text,
    // packageCompletionProcessor);

    if (_currentSelection instanceof IPackageFragment) {
      _packageDialogField.setText(((IPackageFragment) _currentSelection).getElementName());
    } else {
      String _package = null;
      IResource _resource = ResourcesPlugin.getWorkspace().getRoot().findMember(this.getContainerFullPath());
      if (_resource instanceof IFolder) {
        _package = packageNameForComponentFolder((IFolder)_resource);
      }
      if (_package == null && (_package = packageNameForComponent("Main")) == null) {
        _package = "";
      }
      _packageDialogField.setText(_package);
    }

    SuperclassButtonAdapter superclassButtonAdapter = new SuperclassButtonAdapter();
    _superclassDialogField = new StringButtonStatusDialogField(superclassButtonAdapter);
    _superclassDialogField.setDialogFieldListener(superclassButtonAdapter);
    _superclassDialogField.setLabelText(NewWizardMessages.NewTypeWizardPage_superclass_label);
    _superclassDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_superclass_button);
    _superclassDialogField.setStatusWidthHint(NewWizardMessages.NewTypeWizardPage_default);
    _superclassDialogField.doFillIntoGrid(javaGroup, 4);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.ui.wizards.dialogfields.StringButtonStatusDialogField

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.