Package org.eclipse.jface.dialogs

Examples of org.eclipse.jface.dialogs.InputDialog.open()


        }
        return null;
      }
     
    });
    dialog.open();
    String optionName = dialog.getValue();
    if (optionName != null && !optionName.trim().equals("")) {
      PublisherOption option = new PublisherOption();
      option.setName(optionName);
      option.setValue("<value>");
View Full Code Here


     */
    protected class ListAdapter implements IListAdapter {
        public void customButtonPressed(ListDialogField field, int index) {
            if (index == 0) { // "Add..." button
                InputDialog dialog = new InputDialog(getShell(), "Add Argument Type", "Specify an argument type to add:", "", null);
                if (dialog.open() == Window.OK && dialog.getValue().length() > 0) {
                    fArgumentTypesDialogField.addElement(new ArgumentType(dialog.getValue()));
                }
            }
        }
        public void selectionChanged(ListDialogField field) {
View Full Code Here

     */
    protected class ListAdapter implements IListAdapter {
        public void customButtonPressed(ListDialogField field, int index) {
            if (index == 0) { // "Add..." button
                InputDialog dialog = new InputDialog(getShell(), "Add Argument Type", "Specify an argument type to add:", "", null);
                if (dialog.open() == Window.OK && dialog.getValue().length() > 0) {
                    fArgumentTypesDialogField.addElement(new ArgumentType(dialog.getValue()));
                }
            }
        }
        public void selectionChanged(ListDialogField field) {
View Full Code Here

            return;
        }

        InputDialog inputDialog =
            new InputDialog(shell, "Subroutine Name", "Name of Subroutine", "", null);
        int returnCode = inputDialog.open();

        // return unless the ok button was pressed
        if (returnCode != Window.OK) { return; }

        String[] result = SourceRefactor.extractMethod(inputDialog.getValue(), selection.getText(),
View Full Code Here

        getShell(),
        "Edit Environment Variable",
        "Environment Variable",
        input,
        null);
    int returnCode = dialog.open();

    if (returnCode == Window.OK)
    {
      input = dialog.getValue();
    } else
View Full Code Here

        getShell(),
        "Add Environment Variable",
        "Environment Variable",
        null,
        null);
    int returnCode = dialog.open();

    if (returnCode == Window.OK)
    {

      return (dialog.getValue());
View Full Code Here

        {
            InputDialog inputDialog =
                new InputDialog(shell, PopupMessages.getString("PerlDoc.search.title"),
                    PopupMessages.getString("PerlDoc.search.message"), "", null);

            int returnCode = inputDialog.open();

            if (returnCode == Window.OK)
            {
                selection = inputDialog.getValue();
            }
View Full Code Here

    // open an input dialog so that the user can enter a new task tag
    Shell shell =
      PerlEditorPlugin
      .getWorkbenchWindow().getShell();   
    InputDialog inputDialog = new InputDialog(shell, "New Task Tag...", "Enter new Task Tag:", "", null);
    int returnCode = inputDialog.open();
   
    if (returnCode == Window.OK) {
      result = inputDialog.getValue();
    }
   
View Full Code Here

                            }
                            return error;
                        }
                    });

                if (dialog.open() == Window.OK)
                {
                    String value = dialog.getValue();
                    resources.add(value);
                    viewer.add(value);
                }
View Full Code Here

            } else {
              return "Invalid input";
            }
          }
        });
    if (id.open() == IStatus.OK) {
      node.rename(id.getValue());
    }
  }

  /**
 
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.