netbeans.org is behind firewall, using runsocks wrapper... Index: CommonProjectActions.java =================================================================== RCS file: /cvs/projects/projectuiapi/src/org/netbeans/spi/project/ui/support/CommonProjectActions.java,v retrieving revision 1.4 diff -u -b -r1.4 CommonProjectActions.java --- CommonProjectActions.java 4 Jan 2005 20:40:50 -0000 1.4 +++ CommonProjectActions.java 2 May 2005 15:38:51 -0000 @@ -22,6 +22,12 @@ */ public class CommonProjectActions { + /** + * Property honored by newProjectAction that defines + * default working directory (compare to project directory). + */ + public static final String CURRENT_SOURCE_DIRECTORY = "currentSrcDirectory"; + private CommonProjectActions() {} /** @@ -90,4 +96,16 @@ return Utilities.getActionsFactory().newFileAction(); } + /** + * Creates action that invokes new project wizard. + * It honors {@link CURRENT_SOURCE_DIRECTORY}. + * + * @return an action + * @see org.netbeans.spi.project.ui.PrivilegedTemplates + * @see org.netbeans.spi.project.ui.RecommendedTemplates + */ + public static Action newProjectAction() { + return Utilities.getActionsFactory().newProjectAction(); + } + }