Package org.eclipse.swt.widgets

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


      browse.addListener(SWT.Selection, new Listener() {
        @Override public void handleEvent(Event event) {
          DirectoryDialog dialog = new DirectoryDialog(getShell());
          dialog.setMessage("Select a folder for storing data collected by Rabbit.");

          String path = dialog.open();
          if (path != null) {
            storageText.setText(path);
          }
          setErrorMessage(null);
        }
View Full Code Here


    private void selectInFileSystem() {
        String file;
        if (defaultExtension == null) {
            // we want a folder
            DirectoryDialog dialog = new DirectoryDialog(getShell(), SWT.OPEN);
            file = dialog.open();
        } else {
            FileDialog dialog = new FileDialog(getShell(), SWT.OPEN);
            if (text != null) {
                dialog.setFileName(text.getText());
            }
View Full Code Here

            FileDialog dialog = new FileDialog(getShell(), SWT.OPEN);
            if (text != null) {
                dialog.setFileName(text.getText());
            }
            dialog.setFilterExtensions(new String[] {defaultExtension, "*"});
            file = dialog.open();           
        }
        if (file != null) {
            setFile(file);
        }
    }
View Full Code Here

            @Override
            public void handleEvent(Event event) {
              DirectoryDialog fdialog = new DirectoryDialog(
                  comp.getShell(),
                  SWT.OPEN);
              String result = fdialog.open();
              if (result != null) {
                text1.setText(result);
              }

            }
View Full Code Here

        String dirName = pathText.getText();

        DirectoryDialog dialog = new DirectoryDialog(getShell());
        dialog.setMessage("Select the Drools 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 Drools 6 runtime directory.");
        String selectedDirectory = dialog.open();

        if (selectedDirectory != null) {
            DroolsRuntimeManager.createDefaultRuntime(selectedDirectory);
            String version = Platform.getBundle("org.drools.eclipse").getVersion().toString();
            nameText.setText("Drools " + version + " runtime");
View Full Code Here

        {
          m_serverPathField = new StringButtonDialogField(new IStringButtonAdapter() {
            public void changeControlPressed(DialogField field) {
              DirectoryDialog directoryDialog = new DirectoryDialog(getShell());
              directoryDialog.setFilterPath(m_serverPathField.getText());
              String newPath = directoryDialog.open();
              if (newPath != null) {
                m_serverPathField.setText(newPath);
              }
            }
          });
View Full Code Here

      DirectoryDialog directoryDialog = new DirectoryDialog(DesignerPlugin.getShell());
      directoryDialog.setText("Ext GWT Location");
      directoryDialog.setMessage("Choose folder with extracted Ext GWT, it should have gxt.jar file.\n"
          + "You can download it from http://www.extjs.com/products/gxt/");
      directoryDialog.setFilterPath(libraryLocation);
      libraryLocation = directoryDialog.open();
      // cancel
      if (libraryLocation == null) {
        return null;
      }
      // check for "gxt.jar" file
View Full Code Here

      } 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

    DirectoryDialog dialog =
        new DirectoryDialog(Display.getCurrent().getActiveShell());
    dialog.setText("Copy from local directory");
    dialog.setMessage("Copy the local directory"
        + " to the selected directories on the distributed filesystem");
    String directory = dialog.open();

    if (directory == null)
      return;

    for (DfsFolder folder : filterSelection(DfsFolder.class, selection))
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.