Lines 14-19
Link Here
|
14 |
package org.netbeans.modules.project.ui.actions; |
14 |
package org.netbeans.modules.project.ui.actions; |
15 |
|
15 |
|
16 |
import java.awt.event.ActionEvent; |
16 |
import java.awt.event.ActionEvent; |
|
|
17 |
import java.io.File; |
17 |
import java.io.IOException; |
18 |
import java.io.IOException; |
18 |
import java.util.Iterator; |
19 |
import java.util.Iterator; |
19 |
import java.util.LinkedList; |
20 |
import java.util.LinkedList; |
Lines 26-31
Link Here
|
26 |
import org.netbeans.modules.project.ui.NewProjectWizard; |
27 |
import org.netbeans.modules.project.ui.NewProjectWizard; |
27 |
import org.netbeans.modules.project.ui.OpenProjectList; |
28 |
import org.netbeans.modules.project.ui.OpenProjectList; |
28 |
import org.netbeans.modules.project.ui.ProjectUtilities; |
29 |
import org.netbeans.modules.project.ui.ProjectUtilities; |
|
|
30 |
import org.netbeans.spi.project.ui.support.CommonProjectActions; |
29 |
import org.openide.ErrorManager; |
31 |
import org.openide.ErrorManager; |
30 |
import org.openide.filesystems.FileObject; |
32 |
import org.openide.filesystems.FileObject; |
31 |
import org.openide.filesystems.Repository; |
33 |
import org.openide.filesystems.Repository; |
Lines 68-76
Link Here
|
68 |
} |
70 |
} |
69 |
} |
71 |
} |
70 |
|
72 |
|
71 |
private void doPerform () { |
73 |
/*T9Y*/ NewProjectWizard prepareWizardDescriptor(FileObject fo) { |
72 |
|
|
|
73 |
FileObject fo = Repository.getDefault().getDefaultFileSystem().findResource( "Templates/Project" ); //NOI18N |
74 |
NewProjectWizard wizard = new NewProjectWizard(fo); |
74 |
NewProjectWizard wizard = new NewProjectWizard(fo); |
75 |
|
75 |
|
76 |
if ( isPreselect ) { |
76 |
if ( isPreselect ) { |
Lines 83-88
Link Here
|
83 |
wizard.putProperty( "PRESELECT_TEMPLATE", null ); |
83 |
wizard.putProperty( "PRESELECT_TEMPLATE", null ); |
84 |
} |
84 |
} |
85 |
|
85 |
|
|
|
86 |
File folder = (File) getValue(CommonProjectActions.EXISTING_SOURCES_DIRECTORY); |
87 |
if (folder != null) { |
88 |
wizard.putProperty(CommonProjectActions.EXISTING_SOURCES_DIRECTORY, folder); |
89 |
} |
90 |
return wizard; |
91 |
} |
92 |
|
93 |
private void doPerform () { |
94 |
|
95 |
FileObject fo = Repository.getDefault().getDefaultFileSystem().findResource( "Templates/Project" ); //NOI18N |
96 |
NewProjectWizard wizard = prepareWizardDescriptor(fo); |
86 |
|
97 |
|
87 |
try { |
98 |
try { |
88 |
|
99 |
|