1 19 20 package org.netbeans.modules.project.ui; 21 22 import java.io.File ; 23 import javax.swing.JFileChooser ; 24 import org.netbeans.api.project.Project; 25 import org.netbeans.modules.project.uiapi.ProjectChooserFactory; 26 import org.netbeans.api.project.SourceGroup; 27 import org.openide.WizardDescriptor; 28 29 33 public class ProjectChooserFactoryImpl implements ProjectChooserFactory { 34 35 public ProjectChooserFactoryImpl() {} 36 37 public JFileChooser createProjectChooser() { 38 return ProjectChooserAccessory.createProjectChooser( false ); 39 } 40 41 public WizardDescriptor.Panel createSimpleTargetChooser( Project project, SourceGroup[] folders, WizardDescriptor.Panel bottomPanel ) { 42 return new SimpleTargetChooserPanel( project, folders, bottomPanel, false ); 43 } 44 45 public File getProjectsFolder() { 46 return OpenProjectListSettings.getInstance().getProjectsFolder(true); 47 } 48 49 public void setProjectsFolder(File file) { 50 OpenProjectListSettings.getInstance().setProjectsFolder (file); 51 } 52 53 } 54 | Popular Tags |