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.

Bug 29032 - Enhance NewFileAction to work without project context
Summary: Enhance NewFileAction to work without project context
Status: CLOSED WONTFIX
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Infrastructure (show other bugs)
Version: 3.x
Hardware: PC All
: P2 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords:
: 28089 (view as bug list)
Depends on: 27803
Blocks:
  Show dependency tree
 
Reported: 2002-11-26 22:33 UTC by Vitezslav Stejskal
Modified: 2003-12-11 14:25 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vitezslav Stejskal 2002-11-26 22:33:45 UTC
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.
Comment 1 Vitezslav Stejskal 2003-01-10 13:06:35 UTC
*** Issue 28089 has been marked as a duplicate of this issue. ***
Comment 2 Pavel Buzek 2003-07-24 10:10:47 UTC
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.
Comment 3 Vitezslav Stejskal 2003-11-26 13:18:04 UTC
As described in
http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the
current work on projects prototype has been stopped.
Comment 4 Vitezslav Stejskal 2003-11-26 14:57:23 UTC
--> VERIFIED