Examples of SelectionButtonDialogFieldGroup


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

    gd.horizontalSpan = nColumns;
    Label label = new Label(container, SWT.None);
    label.setText("Which method stubs would you like to create?");
    label.setLayoutData(gd);

    setMethodStubButtons(new SelectionButtonDialogFieldGroup(SWT.CHECK, new String[] { "Su&perclass constructor",
        "In&herited abstract methods" }, 1));
    methodStubButtons.doFillIntoGrid(container, nColumns - 1);
    DialogField.createEmptySpace(container);

    methodStubButtons.setSelection(1, true);
View Full Code Here

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

    interfaceDialog.doFillIntoGrid(container, nColumns);
  }

  protected void createClassModifierControls() {
    String[] buttonsName = { "abs&tract", "fina&l" };
    classModifierField = new SelectionButtonDialogFieldGroup(SWT.CHECK, buttonsName, nColumns);
    classModifierField.setLabelText("Modifiers:");
    classModifierField.doFillIntoGrid(container, nColumns);

    classModifierField.setDialogFieldListener(new IDialogFieldListener() {
View Full Code Here

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

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

    buttonGroup = new SelectionButtonDialogFieldGroup(SWT.RADIO,
        new String[] { getProjectChoiceLabel(),
            getGlobalChoiceLabel() }, 2);
    buttonGroup.setLabelText(getButtonGroupLabel());
    buttonGroup.doFillIntoGrid(scriptGroup, 3);
    buttonGroup
View Full Code Here

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

        setDescription("Create a new Declarative Services component class.");

        String[] buttonNames3 = new String[] {
                NewWizardMessages.NewClassWizardPage_methods_constructors, NewWizardMessages.NewClassWizardPage_methods_inherited
        };
        fMethodStubsButtons = new SelectionButtonDialogFieldGroup(SWT.CHECK, buttonNames3, 1);
        fMethodStubsButtons.setLabelText(NewWizardMessages.NewClassWizardPage_methods_label);
    }
View Full Code Here

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

        setDescription(Messages.NewDSComponentWizardPage_description);

        String[] buttonNames3 = new String[] {
                NewWizardMessages.NewClassWizardPage_methods_constructors, NewWizardMessages.NewClassWizardPage_methods_inherited
        };
        fMethodStubsButtons = new SelectionButtonDialogFieldGroup(SWT.CHECK, buttonNames3, 1);
        fMethodStubsButtons.setLabelText(NewWizardMessages.NewClassWizardPage_methods_label);
       
        fLifecycleMethodDialogField = new ComboDialogField(SWT.READ_ONLY);
        fLifecycleMethodDialogField.setLabelText(Messages.NewDSComponentWizardPage_LC_label);
    }
View Full Code Here

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

        fSuperInterfacesDialogField.setRemoveButtonIndex(2);

        String[] buttonNames1 = new String[] {
                NewWizardMessages.NewTypeWizardPage_modifiers_public, NewWizardMessages.NewTypeWizardPage_modifiers_default, NewWizardMessages.NewTypeWizardPage_modifiers_private, NewWizardMessages.NewTypeWizardPage_modifiers_protected
        };
        fAccMdfButtons = new SelectionButtonDialogFieldGroup(SWT.RADIO, buttonNames1, 4);
        fAccMdfButtons.setDialogFieldListener(adapter);
        fAccMdfButtons.setLabelText(getModifiersLabel());
        fAccMdfButtons.setSelection(0, true);

        String[] buttonNames2;
        if (fTypeKind == CLASS_TYPE) {
            buttonNames2 = new String[] {
                    NewWizardMessages.NewTypeWizardPage_modifiers_abstract, NewWizardMessages.NewTypeWizardPage_modifiers_final, NewWizardMessages.NewTypeWizardPage_modifiers_static
            };
        } else {
            if (fTypeKind == ENUM_TYPE || fTypeKind == ANNOTATION_TYPE) {
                buttonNames2 = new String[] {
                        NewWizardMessages.NewTypeWizardPage_modifiers_abstract, NewWizardMessages.NewTypeWizardPage_modifiers_static
                };
            } else
                buttonNames2 = new String[] {};
        }

        fOtherMdfButtons = new SelectionButtonDialogFieldGroup(SWT.CHECK, buttonNames2, 4);
        fOtherMdfButtons.setDialogFieldListener(adapter);

        fAccMdfButtons.enableSelectionButton(PRIVATE_INDEX, false);
        fAccMdfButtons.enableSelectionButton(PROTECTED_INDEX, false);
        fOtherMdfButtons.enableSelectionButton(STATIC_INDEX, false);
View Full Code Here

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

        fSuperInterfacesDialogField.setRemoveButtonIndex(2);

        String[] buttonNames1 = new String[] {
                NewWizardMessages.NewTypeWizardPage_modifiers_public, NewWizardMessages.NewTypeWizardPage_modifiers_default, NewWizardMessages.NewTypeWizardPage_modifiers_private, NewWizardMessages.NewTypeWizardPage_modifiers_protected
        };
        fAccMdfButtons = new SelectionButtonDialogFieldGroup(SWT.RADIO, buttonNames1, 4);
        fAccMdfButtons.setDialogFieldListener(adapter);
        fAccMdfButtons.setLabelText(getModifiersLabel());
        fAccMdfButtons.setSelection(0, true);

        String[] buttonNames2;
        if (fTypeKind == CLASS_TYPE) {
            buttonNames2 = new String[] {
                    NewWizardMessages.NewTypeWizardPage_modifiers_abstract, NewWizardMessages.NewTypeWizardPage_modifiers_final, NewWizardMessages.NewTypeWizardPage_modifiers_static
            };
        } else {
            if (fTypeKind == ENUM_TYPE || fTypeKind == ANNOTATION_TYPE) {
                buttonNames2 = new String[] {
                        NewWizardMessages.NewTypeWizardPage_modifiers_abstract, NewWizardMessages.NewTypeWizardPage_modifiers_static
                };
            } else
                buttonNames2 = new String[] {};
        }

        fOtherMdfButtons = new SelectionButtonDialogFieldGroup(SWT.CHECK, buttonNames2, 4);
        fOtherMdfButtons.setDialogFieldListener(adapter);

        fAccMdfButtons.enableSelectionButton(PRIVATE_INDEX, false);
        fAccMdfButtons.enableSelectionButton(PROTECTED_INDEX, false);
        fOtherMdfButtons.enableSelectionButton(STATIC_INDEX, false);
View Full Code Here

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

    this.moduleInheritsDialogField
        .setRemoveButtonIndex(REMOVE_INHERITS_BUTTON_GROUP_INDEX);

    String[] buttonNames = { "Create public resource path",
        "Create package for client source" };
    this.moduleCreateElementsCheckboxes = new SelectionButtonDialogFieldGroup(
        32, buttonNames, 1);

    this.moduleContainerStatus = new StatusInfo();
    this.modulePackageStatus = new StatusInfo();
    this.moduleNameStatus = new StatusInfo();
View Full Code Here

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

  public NewComponentCreationPage(boolean isClass, String pageName) {
    super(isClass, pageName);
    setTitle("WebObjects Component" /*NewWizardMessages.NewClassWizardPage_title*/);
    setDescription("Create a new component view with controller class" /*NewWizardMessages.NewClassWizardPage_description*/);
    String buttonNames2[] = { NewWizardMessages.NewClassWizardPage_methods_constructors, NewWizardMessages.NewClassWizardPage_methods_inherited };
    this.fMethodStubsButtons = new SelectionButtonDialogFieldGroup(32, buttonNames2, 1);
    this.fMethodStubsButtons.setLabelText(NewWizardMessages.NewClassWizardPage_methods_label);

    ComponentContainerFieldAdapter componentContainerAdaptor = new ComponentContainerFieldAdapter();
    this.fComponentContainerDialogField = new StringButtonDialogField(componentContainerAdaptor);
    this.fComponentContainerDialogField.setDialogFieldListener(componentContainerAdaptor);
View Full Code Here

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

          }
        }
        // modifier
        {
          m_modifierField =
              new SelectionButtonDialogFieldGroup(SWT.RADIO,
                  new String[]{"&public", "pro&tected"},
                  1,
                  SWT.SHADOW_ETCHED_IN);
          doCreateField(m_modifierField, ModelMessages.ExposePropertyAction_dialogModifier);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.