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

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


     * @param name Page name
     */
    public NewMemberCutWizardPage(String name) {
        super(name);

        fTargetClassDialogField = new StringButtonDialogField(new IStringButtonAdapter() {
            public void changeControlPressed(DialogField field) {
                IType type = chooseTargetClass();
                if (type != null) {
                  fTargetClassDialogField.setText(JavaModelUtil.getFullyQualifiedName(type));
                }
View Full Code Here


    public NewExceptionCutWizardPage() {
        super(PAGE_NAME);
        setTitle("Exception Cut Customization");
        setDescription("Select an optional target exception that must match.");

        fTargetExceptionDialogField = new StringButtonDialogField(new IStringButtonAdapter() {
            public void changeControlPressed(DialogField field) {
                IType type = chooseTargetException();
                if (type != null) {
                  fTargetExceptionDialogField.setText(JavaModelUtil.getFullyQualifiedName(type));
                }
View Full Code Here

        fEnclosingTypeSelection = new SelectionButtonDialogField(SWT.CHECK);
        fEnclosingTypeSelection.setDialogFieldListener(adapter);
        fEnclosingTypeSelection.setLabelText(getEnclosingTypeLabel());

        fEnclosingTypeDialogField = new StringButtonDialogField(adapter);
        fEnclosingTypeDialogField.setDialogFieldListener(adapter);
        fEnclosingTypeDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_enclosing_button);

        fTypeNameDialogField = new StringDialogField();
        fTypeNameDialogField.setDialogFieldListener(adapter);
        fTypeNameDialogField.setLabelText(getTypeNameLabel());

        fSuperClassDialogField = new StringButtonDialogField(adapter);
        fSuperClassDialogField.setDialogFieldListener(adapter);
        fSuperClassDialogField.setLabelText(getSuperClassLabel());
        fSuperClassDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_superclass_button);

        String[] addButtons = new String[] {
View Full Code Here

        fEnclosingTypeSelection = new SelectionButtonDialogField(SWT.CHECK);
        fEnclosingTypeSelection.setDialogFieldListener(adapter);
        fEnclosingTypeSelection.setLabelText(getEnclosingTypeLabel());

        fEnclosingTypeDialogField = new StringButtonDialogField(adapter);
        fEnclosingTypeDialogField.setDialogFieldListener(adapter);
        fEnclosingTypeDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_enclosing_button);

        fTypeNameDialogField = new StringDialogField();
        fTypeNameDialogField.setDialogFieldListener(adapter);
        fTypeNameDialogField.setLabelText(getTypeNameLabel());

        fSuperClassDialogField = new StringButtonDialogField(adapter);
        fSuperClassDialogField.setDialogFieldListener(adapter);
        fSuperClassDialogField.setLabelText(getSuperClassLabel());
        fSuperClassDialogField.setButtonLabel(NewWizardMessages.NewTypeWizardPage_superclass_button);

        String[] addButtons = new String[] {
View Full Code Here

    initializeDialogFields();
    initialize(selection);
  }

  private void initializeDialogFields() {
    fFolderNameDialogField= new StringButtonDialogField(this);
    fFolderNameDialogField.setDialogFieldListener(this);
    fFolderNameDialogField.setLabelText("Folder name:");
    fFolderNameDialogField.setButtonLabel("Browse...");
   
    fMapNameDialogField = new StringDialogField();
View Full Code Here

        classPathList.setDialogFieldListener(adapter);
        //TODO tets if everything works as expected
        IWorkbenchPreferenceContainer root = (IWorkbenchPreferenceContainer)JavaPlugin.getWorkspace().getRoot().getParent();
        //SWTUtil.createPreferenceLink((IWorkbenchPreferenceContainer));
        libraryPage = new LibrariesWorkbookPage( classPathList, root);
        outputField = new StringButtonDialogField(adapter);
        outputField.setDialogFieldListener(adapter);
        outputField.setLabelText(
            WebappMessages.getString(
                "WebAppConfigurationBlock.outputfield.label"));
        outputField.setButtonLabel(
View Full Code Here

    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);
    this.fComponentContainerDialogField.setLabelText(getComponentContainerLabel());
    this.fComponentContainerDialogField.setButtonLabel(NewWizardMessages.NewContainerWizardPage_container_button);
   
    this.fComponentContainerStatus = new StatusInfo();
View Full Code Here

    public LocationGroup() {
      fUseDefaults = new SelectionButtonDialogField(SWT.CHECK);
      fUseDefaults.setDialogFieldListener(this);
      fUseDefaults.setLabelText(NewWizardMessages.NewJavaProjectWizardPageOne_LocationGroup_location_desc);

      fLocation = new StringButtonDialogField(this);
      fLocation.setDialogFieldListener(this);
      fLocation.setLabelText(NewWizardMessages.NewJavaProjectWizardPageOne_LocationGroup_locationLabel_desc);
      fLocation.setButtonLabel(NewWizardMessages.NewJavaProjectWizardPageOne_LocationGroup_browseButton_desc);

      fUseDefaults.setSelection(true);
View Full Code Here

      fWorkspaceRadio.setLabelText("Use &default location");

      fExternalRadio = new SelectionButtonDialogField(SWT.RADIO);
      fExternalRadio.setLabelText("Use &external location");

      fLocation = new StringButtonDialogField(this);
      fLocation.setDialogFieldListener(this);
      fLocation.setLabelText(NewWizardMessages.NewJavaProjectWizardPageOne_LocationGroup_locationLabel_desc);
      fLocation.setButtonLabel(NewWizardMessages.NewJavaProjectWizardPageOne_LocationGroup_browseButton_desc);

      fExternalRadio.attachDialogField(fLocation);
View Full Code Here

TOP

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