Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.DirectoryDialog.open()


    String dirName = pathText.getText();

    DirectoryDialog dialog = new DirectoryDialog(getShell());
    dialog.setMessage("Select the jBPM runtime directory.");
    dialog.setFilterPath(dirName);
    selectedDirectory = dialog.open();
   
    if (selectedDirectory != null) {
      pathText.setText(selectedDirectory);
    }
  }
View Full Code Here


  }
 
  private void createRuntime() {
    DirectoryDialog dialog = new DirectoryDialog(getShell());
    dialog.setMessage("Select the new jBPM runtime directory.");
    String selectedDirectory = dialog.open();
   
    if (selectedDirectory != null) {
      JBPMRuntimeManager.createDefaultRuntime(selectedDirectory);
      nameText.setText("jBPM runtime");
      pathText.setText(selectedDirectory);
View Full Code Here

    String dirName = urlText.getText();

    DirectoryDialog dialog = new DirectoryDialog(getShell());
    dialog.setMessage("Select the jBPM service repository");
    dialog.setFilterPath(dirName);
    selectedDirectory = dialog.open();
   
    if (selectedDirectory != null) {
      urlText.setText(selectedDirectory);
    }
    }
View Full Code Here

    DirectoryDialog dialog = new DirectoryDialog(shell, SWT.OPEN | SWT.APPLICATION_MODAL);
    if (filterPath != null && filterPath.trim().length() != 0) {
      dialog.setFilterPath(filterPath);
    }
    dialog.setMessage(selectFileSystemDirectory);
    return dialog.open();
  }

  private DirectorySelectionDialogs() {}
}
View Full Code Here

  private String openFolderDialog(IWorkbenchWindow window) {
    DirectoryDialog dialog = new DirectoryDialog(window.getShell(),
        SWT.OPEN);
    dialog.setText(Messages.OpenFolderHandler_dialog_text);
    return dialog.open();
  }
}
View Full Code Here

  }

  private String openFolderDialog(Shell shell) {
    DirectoryDialog dialog = new DirectoryDialog(shell, SWT.OPEN);
    dialog.setText(Messages.AudioTagTitleAreaDialog_dialog_text);
    return dialog.open();
  }
}
View Full Code Here

  private void makeActions() {
    actionAddRepository = new Action() {
      public void run() {
        DirectoryDialog dialog = new DirectoryDialog(getShell());
        dialog.setMessage("Choose a repository");
        String directory = dialog.open();
        if (directory != null) {
          File repositoryDirectory = new File(directory);
          BundleRepositoryPersister persister = new BundleRepositoryPersister(repositoryDirectory);
          if (persister.checkRepository()) {
            addRepositoryPath(directory);
View Full Code Here

      public void run() {
        FileDialog dialog = new FileDialog(getShell(), SWT.OPEN | SWT.MULTI);
        dialog.setFilterNames(new String[] { "OSGi Bundle (*.jar)"});
        dialog.setFilterExtensions(new String[] { "*.jar" });
        dialog.setText("Choose a bundle");
        if (dialog.open() != null) {
          ISelection selection = viewer.getSelection();
          TreeObject selectedItem = (TreeObject) ((IStructuredSelection) selection).getFirstElement();
          ProgressMonitorDialog progressDialog = new ProgressMonitorDialog(getShell());
          try {
            String[] files = dialog.getFileNames();
View Full Code Here

        DirectoryDialog directoryDialog = new DirectoryDialog(getShell(), SWT.SINGLE);

        directoryDialog.setFilterPath("C:/");
        directoryDialog.setMessage(message);

        String selectedDirectory = directoryDialog.open();
        textarea.setText(selectedDirectory);
      }
    });
    return browse;
View Full Code Here

      }
    }
     if(e.getSource().equals(addItem)){
        DirectoryDialog dd = new DirectoryDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
        try {
          HFiles.getInstance().add(dd.open());
          refreshTree();
        } catch (DocumentException e1) {
          HLog.doclogger.fatal("The document seems to be corrupted after adding item",e1);
        } catch (IOException e2) {
          HLog.doclogger.error("Could not read important info from disk",e2);
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.