Package org.eclipse.ui.dialogs

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


    fFileBrowse.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        String filePath = fFileText.getText();
        FileDialog dialog = new FileDialog(getShell(), SWT.SAVE);
        filePath = dialog.open();
        if (filePath != null) {
          fFileText.setText(filePath);
        }
      }
    });
View Full Code Here


    });
    fVariables = createPushButton(standardGroup, LaunchConfigurationsMessages.CommonTab_9, null);
    fVariables.addSelectionListener(new SelectionListener() {
      public void widgetSelected(SelectionEvent e) {
        StringVariableSelectionDialog dialog = new StringVariableSelectionDialog(getShell());
        dialog.open();
        String variable = dialog.getVariableExpression();
        if (variable != null) {
          fFileText.insert(variable);
        }
      }
View Full Code Here

        dialog.setTitle("Select input folder");
        dialog.setMessage("Select input folder");

        dialog.setInput(getProject().getProject());
        dialog.setInitialSelection(getWorkspaceRoot().findMember(inputText.getText()));
        if (dialog.open() == IDialogConstants.OK_ID) {
          IResource resource = (IResource) dialog.getFirstResult();
          if (resource != null) {
            String fileLoc = resource.getFullPath().toString();
            inputText.setText(fileLoc);
          }
View Full Code Here

        String currentContainerString = outputFolderText.getText();
        IContainer currentContainer = getContainer(currentContainerString);
        ContainerSelectionDialog dialog = new ContainerSelectionDialog(getShell(),
                currentContainer, false, "Select output folder");
        dialog.showClosedProjects(false);
        dialog.open();
        Object[] results = dialog.getResult();
        if ((results != null) && (results.length > 0) && (results[0] instanceof IPath)) {
          IPath path = (IPath) results[0];
          String containerName = path.toOSString();
          outputFolderText.setText(containerName);
View Full Code Here

            }   
          }
          return false;
        }
      });   
    if (dialog.open() == ResourceSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      IProject p = (IProject) result[0];
      projectText.setText(p.getName());
      selectedProject = p;
      dialogChanged();
View Full Code Here

            }   
          }
          return false;
        }
      });   
    if (dialog.open() == ResourceSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      IProject p = (IProject) result[0];
      projectText.setText(p.getName());
      selectedProject = p;
      dialogChanged();
View Full Code Here

            }
          }
          return ValidationStatus.error("Invalid selection");
        }
      });
    if (dialog.open() == ResourceSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      IFile f = (IFile) result[0];
      capabilityFileText.setText(f.getRawLocation().toOSString());
      dialogChanged();
    }
View Full Code Here

            }   
          }
          return false;
        }
      });   
    if (dialog.open() == ResourceSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      IProject p = (IProject) result[0];
      projectText.setText(p.getName());
      selectedProject = p;
      dialogChanged();
View Full Code Here

            }   
          }
          return false;
        }
      });   
    if (dialog.open() == ResourceSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      IProject p = (IProject) result[0];
      projectText.setText(p.getName());
      selectedProject = p;
      dialogChanged();
View Full Code Here

            }
          }
          return ValidationStatus.error("Invalid selection");
        }
      });
    if (dialog.open() == ResourceSelectionDialog.OK) {
      Object[] result = dialog.getResult();
      IFile f = (IFile) result[0];
      fileList.add(0, f);
      capabilityFileText.setText(f.getRawLocation().toOSString());
      dialogChanged();
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.