1 19 20 package org.netbeans.spi.project.ui.support; 21 22 import java.io.File ; 23 import javax.swing.JFileChooser ; 24 import org.netbeans.modules.project.uiapi.Utilities; 25 26 30 public class ProjectChooser { 31 32 private ProjectChooser() {} 33 34 35 40 public static File getProjectsFolder () { 41 return Utilities.getProjectChooserFactory().getProjectsFolder(); 42 } 43 44 48 public static void setProjectsFolder (File folder) { 49 assert folder != null && folder.isDirectory(): "Parameter must be a valid folder."; Utilities.getProjectChooserFactory().setProjectsFolder(folder); 51 } 52 53 58 public static JFileChooser projectChooser() { 59 return Utilities.getProjectChooserFactory().createProjectChooser(); 60 } 61 62 } 63 | Popular Tags |