The magic key "setAsMain" is used by a New Project wizard impl to instruct NewProject to set the first returned project directory as the main project.
This should probably be changed to a get/set pair in Templates.
Created attachment 97396 [details]
Proposed patch, with usage in three project types
A minor change: for compatibility, the default value of the flag must be true, not false. This explains why e.g. the autoproject wizard always sets the new project as main despite having no code mentioning a main project.
Integrated into 'main-golden', will be available in build *201004220200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Jesse Glick <firstname.lastname@example.org>
Log: Issue #184213: provide proper API for setAsMain constant.