Package org.eclipse.swt.widgets

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


      public void widgetSelected(SelectionEvent event) {
        DirectoryDialog dlg = new DirectoryDialog(getShell());
        dlg.setFilterPath(inputDirectoryText.getText());
        dlg.setText("Input Directory");
        dlg.setMessage("Select a directory with input document files.");
        String dir = dlg.open();
        if (dir != null) {
          documentList = new ArrayList<DocumentData>();
          File directory = new File(dir);

          System.out.println("dir :" + dir);
View Full Code Here


      @Override
      public void widgetSelected(SelectionEvent event) {
        DirectoryDialog dlg2 = new DirectoryDialog(getShell());
        dlg2.setFilterPath(testDirectoryText.getText());
        dlg2.setText("Location of the test files");
        String dir = dlg2.open();
        if (dir != null) {
          testDirectoryText.setText(dir);
        }
      }
    });
View Full Code Here

        public void widgetSelected(SelectionEvent event) {
          DirectoryDialog dlg = new DirectoryDialog(getShell());
          dlg.setFilterPath(inputDirectoryText.getText());
          dlg.setText("Input Directory");
          dlg.setMessage("Select a directory with input XMI files for the learning algorithms.");
          String dir = dlg.open();
          if (dir != null) {
            inputDirectoryText.setText(dir);
          }
        }
      });
View Full Code Here

        public void widgetSelected(SelectionEvent event) {
          DirectoryDialog dlg = new DirectoryDialog(getShell());
          dlg.setFilterPath(inputDirectoryText.getText());
          dlg.setText("Additional Directory");
          dlg.setMessage("Select a directory with input additional XMI files for the learning algorithms.");
          String dir = dlg.open();
          if (dir != null) {
            additionalDirectoryText.setText(dir);
          }
        }
      });
View Full Code Here

        public void widgetSelected(SelectionEvent event) {
          DirectoryDialog dlg = new DirectoryDialog(getShell());
          dlg.setFilterPath(inputDirectoryText.getText());
          dlg.setText("Test Directory");
          dlg.setMessage("Select a directory with input test XMI files.");
          String dir = dlg.open();
          if (dir != null) {
            testDirectoryText.setText(dir);
          }
        }
      });
View Full Code Here

        public void widgetSelected(SelectionEvent event) {
          DirectoryDialog dlg = new DirectoryDialog(getShell());
          dlg.setFilterPath(inputDirectoryText.getText());
          dlg.setText("Input Directory");
          dlg.setMessage("Select a directory with input XMI files.");
          String dir = dlg.open();
          if (dir != null) {
            inputDirectoryText.setText(dir);
          }
        }
      });
View Full Code Here

   * Open the file selection dialog, and add the return locations.
   */
  protected void add() {
    DirectoryDialog dialog = new DirectoryDialog(fLocationsViewer.getControl().getShell());
    dialog.setMessage("Select directory to search into");
    String result = dialog.open();
    if (result != null) {
      final File file = new File(result);
      if (this.folders == null)
        this.folders = new ArrayList();
      if (file != null && file.isDirectory()) {
View Full Code Here

    btnAdd.setText(Messages.getString("RemovableStorageDialog.BtnAdd")); //$NON-NLS-1$
    btnAdd.setLayoutData(new GridData(SWT.FILL, SWT.NONE, true, false));
    btnAdd.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        DirectoryDialog libraryPathDialog = new DirectoryDialog(getShell());
        libraryPathDialog.open();
       
        String result = libraryPathDialog.getFilterPath();
        if ((result != null) &&
            (!result.isEmpty())) {
          dirList.add(result);
View Full Code Here

    btnBrowse.setText(Messages.getString("PlaylistExportWizard.Browse")); //$NON-NLS-1$
    btnBrowse.addSelectionListener(new SelectionAdapter() {
      public void widgetSelected(SelectionEvent arg0) {
        if (btnDirectoryMode.getSelection()) {
          DirectoryDialog pathDialog = new DirectoryDialog(getShell());
          pathDialog.open();
          teDest.setText(pathDialog.getFilterPath());
        } else {
          FileDialog filepathDialog = new FileDialog(getShell(), SWT.SAVE);
          String[] filters = { "*.zip" }; //$NON-NLS-1$
          filepathDialog.setFilterExtensions(filters);
View Full Code Here

        updateHadoopDirLabelFromPreferences();
      } else if (e.getSource() == browse) {
        DirectoryDialog dialog = new DirectoryDialog(this.getShell());
        dialog.setMessage("Select a hadoop installation, containing hadoop-X-core.jar");
        dialog.setText("Select Hadoop Installation Directory");
        String directory = dialog.open();

        if (directory != null) {
          location.setText(directory);

          if (!validateHadoopLocation()) {
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.