This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The NewFileAction is supposed to be invoked from main menu independently on the activated nodes and thus without any context. The templates wizard exposed by this action should be extended that it would try to guess the project from target location and optionaly let the user select project if the target location belongs to more than one project. Than selected project should be passed to next steps of the wozard provided by module which defined the template. This behavior, however, can't ensure that user will not select target location which doesn't belong to any project currently opened in the IDE. Thus module provided part of NFT wizard must be aware of this and behave properly.
*** Issue 28089 has been marked as a duplicate of this issue. ***
IMO this can be solved in combination of 2 changes: 1. NFA will put Project_instance into TemplateWizard 2. target chooser will offer selection of project, if it is not already set it will select a suitable project (e.g. current) this is done in NFA 1.1.2.6 templates are free to override target chooser and limit the selection of available projects to ones that have certain set of natures (example just checked into java module:o.n.m.j.ui.wizard.TargetChooserPanel) The remaining part is to implement the template chooser to offer all existing templates that can be instantiated in at least one of the open projects.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped.
--> VERIFIED