Package org.eclipse.ui.dialogs

Examples of org.eclipse.ui.dialogs.ContainerSelectionDialog.open()


          else
            return "Cannot select a folder in other projects";
        }
       
      });
      if (dialog.open() == ContainerSelectionDialog.OK)
      {
        Object[] result = dialog.getResult();
        if (result.length == 1)
        {
          String path = ((Path)result[0]).toString();
View Full Code Here


                    getShell(),
                    ResourcesPlugin.getWorkspace().getRoot(),
                    false,
                    org.apache.axis2.tool.codegen.eclipse.plugin.CodegenWizardPlugin
                            .getResourceString("page3.containerbox.title"));
            if (dialog.open() == ContainerSelectionDialog.OK) {
                Object[] result = dialog.getResult();
                if (result.length == 1) {
                    outputLocation.setText(((Path) result[0]).toOSString());
                }
            }
View Full Code Here

    if (project != null) {
      IPath path = project.getFullPath();
      dialog.setInitialSelections(new Object[] { path });
    }
    dialog.showClosedProjects(false);
    dialog.open();
    Object[] results = dialog.getResult();
    if ((results != null) && (results.length > 0)
        && (results[0] instanceof IPath)) {
      IPath path = (IPath) results[0];
      path = path.removeFirstSegments(1);
View Full Code Here

   * the container field.
   */

  protected void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), false, "Select new file container");
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here

   * the container field.
   */

  protected void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(), ResourcesPlugin.getWorkspace().getRoot(), false, "Select new file container");
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here

        widgetSelected(selectionevent);
      }

      public void widgetSelected(SelectionEvent selectionevent) {
        ContainerSelectionDialog containerDialog = new ContainerSelectionDialog(getEditorSite().getShell(), project, false, "Select the folder to write autogenerated files into.");
        containerDialog.open();
        Object[] selectedContainers = containerDialog.getResult();
        if (selectedContainers != null && selectedContainers.length > 0) {
          IPath selectedPath = (IPath) selectedContainers[0];
          IFolder selectedFolder = project.getParent().getFolder(selectedPath);
          IPath projectRelativePath = selectedFolder.getProjectRelativePath();
View Full Code Here

        widgetSelected(selectionevent);
      }

      public void widgetSelected(SelectionEvent selectionevent) {
        ContainerSelectionDialog containerDialog = new ContainerSelectionDialog(getEditorSite().getShell(), project, false, "Select the folder to generate customizable files into.");
        containerDialog.open();
        Object[] selectedContainers = containerDialog.getResult();
        if (selectedContainers != null && selectedContainers.length > 0) {
          IPath selectedPath = (IPath) selectedContainers[0];
          IFolder selectedFolder = project.getParent().getFolder(selectedPath);
          IPath projectRelativePath = selectedFolder.getProjectRelativePath();
View Full Code Here

    public void widgetSelected(SelectionEvent event) {
      FileEditorInput editorInput = (FileEditorInput) getEditorInput();
      IFile eogenFile = editorInput.getFile();
      IProject project = eogenFile.getProject();
      ContainerSelectionDialog containerDialog = new ContainerSelectionDialog(getEditorSite().getShell(), project, false, "Select the EOModel to add.");
      containerDialog.open();
      Object[] selectedContainers = containerDialog.getResult();
      if (selectedContainers != null && selectedContainers.length > 0) {
        IPath selectedPath = (IPath) selectedContainers[0];
        IFolder selectedFolder = project.getParent().getFolder(selectedPath);
        IPath modelPath = selectedFolder.getLocation();
View Full Code Here

  private void handleBrowse() {
    ContainerSelectionDialog dialog = new ContainerSelectionDialog(
        getShell(), ResourcesPlugin.getWorkspace().getRoot(), false,
        "Select new file container");
    if (dialog.open() == ContainerSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      if (result.length == 1) {
        containerText.setText(((Path) result[0]).toString());
      }
    }
View Full Code Here

    containerDialog = new ContainerSelectionDialog(
      getShell(),
      ResourcesPlugin.getWorkspace().getRoot(),
      false,
      ExternalToolsLaunchConfigurationMessages.ExternalToolsMainTab_23);
    containerDialog.open();
    Object[] resource = containerDialog.getResult();
    String text= null;
    if (resource != null && resource.length > 0) {
      text= newVariableExpression("workspace_loc", ((IPath)resource[0]).toString()); //$NON-NLS-1$
    }
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.