Package org.eclipse.jdt.internal.ui.wizards.buildpaths

Examples of org.eclipse.jdt.internal.ui.wizards.buildpaths.FolderSelectionDialog.open()


    dialog.setInput(wsroot);
    dialog.setValidator(validator);
    dialog.addFilter(filter);
    dialog.setInitialSelection(getProject());
    if (dialog.open() == FolderSelectionDialog.OK) {
      project.setText(((IProject)dialog.getFirstResult()).getName());
    }
  }

  private void selectFolder() {
View Full Code Here


      dialog.setInput(wsroot);
      dialog.setValidator(validator);
      dialog.addFilter(filter);
      dialog.setInitialSelection(init);
      if (dialog.open() == FolderSelectionDialog.OK) {
        parentFolder.setText(((IFolder)dialog.getFirstResult()).getProjectRelativePath().toString());
      }

    } catch (Throwable t) {
      ClickPlugin.log(t);
View Full Code Here

      dialog.setInput(model);
      dialog.setValidator(validator);
      dialog.addFilter(filter);
      dialog.setInitialSelection(init);
      if (dialog.open() == FolderSelectionDialog.OK) {
        IPackageFragmentRoot root = (IPackageFragmentRoot) dialog.getFirstResult();
        sourceFolder.setText(root.getPath().makeRelativeTo(project.getPath()).toString());
      }

    } catch (Throwable t) {
View Full Code Here

     
      dialog.setInput(wsroot);
      dialog.setValidator(validator);
      dialog.addFilter(filter);
      dialog.setInitialSelection(init);
      if (dialog.open() == Dialog.OK) {
        textWebAppRoot.setText(getFolderName(dialog.getFirstResult()));
      }
     
    } catch (Throwable t) {
      HTMLPlugin.openAlertDialog(t.toString());
View Full Code Here

     
      dialog.setInput(wsroot);
      dialog.setValidator(validator);
      dialog.addFilter(filter);
      dialog.setInitialSelection(init);
      if (dialog.open() == Dialog.OK) {
        textWebAppRoot.setText(getFolderName(dialog.getFirstResult()));
      }
     
    } catch (Throwable t) {
      HTMLPlugin.openAlertDialog(t.toString());
View Full Code Here

   
    dialog.setInput(wsroot);
    dialog.setValidator(validator);
    dialog.addFilter(filter);
    dialog.setInitialSelection(getProject());
    if (dialog.open() == FolderSelectionDialog.OK) {
      project.setText(((IProject)dialog.getFirstResult()).getName());
    }
  }
 
  private void selectFolder() {
View Full Code Here

     
      dialog.setInput(wsroot);
      dialog.setValidator(validator);
      dialog.addFilter(filter);
      dialog.setInitialSelection(init);
      if (dialog.open() == FolderSelectionDialog.OK) {
        parentFolder.setText(((IFolder)dialog.getFirstResult()).getProjectRelativePath().toString());
      }
     
    } catch (Throwable t) {
      ClickPlugin.log(t);
View Full Code Here

     
      dialog.setInput(model);
      dialog.setValidator(validator);
      dialog.addFilter(filter);
      dialog.setInitialSelection(init);
      if (dialog.open() == FolderSelectionDialog.OK) {
        sourceFolder.setText(((IPackageFragmentRoot)dialog.getFirstResult()).getElementName());
      }
     
    } catch (Throwable t) {
      ClickPlugin.log(t);
View Full Code Here

    dialog.addFilter(filter);
    dialog.setInput(workspaceRoot);
    dialog.setInitialSelection(initSelection);
    dialog.setSorter(new ResourceSorter(ResourceSorter.NAME));

    if (dialog.open() == Window.OK) {
      m_outputdir.setText(((IContainer) dialog.getFirstResult()).getProjectRelativePath()
                           .toPortableString());
      m_absolutePath.setSelection(false);
    }
View Full Code Here

    FolderSelectionDialog dialog = new FolderSelectionDialog( parent, lp, cp );
    dialog.setTitle( "Output directory" );
    dialog.setMessage( "Select output directory" );
    dialog.addFilter( filter );
    dialog.setInput( ResourcesPlugin.getWorkspace().getRoot() );
    if ( dialog.open() == Window.OK ) {
      IContainer c = (IContainer) dialog.getFirstResult();
      if ( c.getProject() == ( (IFileEditorInput) getEditorInput() ).getFile().getProject() ) {
        return "${project}/" + c.getProjectRelativePath().toString();
      }
      else {
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.