Package org.eclipse.swt.widgets

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


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

    if (directory == null)
      return;

    for (DfsPath path : filterSelection(DfsPath.class, selection)) {
View Full Code Here


    private void handleBrowse(){
     
      boolean location = locationSelectCheckBox.getSelection();
    if (!location) {
      DirectoryDialog dialog = new DirectoryDialog(this.getShell());
      String returnString = dialog.open();
      if (returnString != null) {
        outputFolderTextBox.setText(returnString);
      }
    } else {
      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
View Full Code Here

          getShell(),
          root,
          false,
          CodegenWizardPlugin
              .getResourceString("page3.containerbox.title"));
      if (dialog.open() == ContainerSelectionDialog.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
          Path path = ((Path) result[0]);
          // append to the workspace path
          if (root.exists(path)) {
View Full Code Here

   */
  private void handleBrowse() {
    boolean location = locationSelectCheckBox.getSelection();
    if (!location) {
      DirectoryDialog dialog = new DirectoryDialog(this.getShell());
      String returnString = dialog.open();
      if (returnString != null) {
        outputLocation.setText(returnString);
      }
    } else {
      IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
View Full Code Here

          getShell(),
          root,
          false,
          CodegenWizardPlugin
              .getResourceString("page3.containerbox.title"));
      if (dialog.open() == ContainerSelectionDialog.OK) {
        Object[] result = dialog.getResult();
        if (result.length == 1) {
          Path path = ((Path) result[0]);
          // append to the workspace path
          if (root.exists(path)) {
View Full Code Here

     * Pops up the file browse dialog box
     * 
     */
    private void handleDirectoryBrowse() {
        DirectoryDialog fileDialog = new DirectoryDialog(this.getShell());
        String dirName = fileDialog.open();
        if (dirName != null) {
          javaClasspathList.add(dirName);
          updateListEntries();
        }
        updateStatusTextField(false,"");
View Full Code Here

          if (modi == MODI.DIRECTORIES_ONLY) {
            DirectoryDialog dialog = new DirectoryDialog(button
                .getShell(), SWT.OPEN);
            dialog.setMessage(title);
            String ret = dialog.open();
            if (ret != null)
              text.setText(ret);

          } else {
            FileDialog dialog = new FileDialog(button.getShell(),
View Full Code Here

            FileDialog dialog = new FileDialog(button.getShell(),
                SWT.OPEN);
            dialog.setFileName(text.getText());
            dialog.setText(title);

            String ret = dialog.open();
            if (ret != null)
              text.setText(ret);

          }
        }
View Full Code Here

        btnBrowseExternalLocation.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                DirectoryDialog dialog = new DirectoryDialog(getShell());
                String path = dialog.open();
                if (path != null) {
                    String cnf = File.separator + Workspace.CNFDIR;
                    if (!path.endsWith(cnf))
                        path = path + cnf;
                    txtExternalLocation.setText(path);
View Full Code Here

        else
        {
            dialog.setFilterPath( fromDirectoryText.getText() );
        }

        String selectedDirectory = dialog.open();
        if ( selectedDirectory != null )
        {
            fromDirectoryText.setText( selectedDirectory );
            fillInSchemaFilesTable( selectedDirectory );
        }
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.