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.
Provide a special location chooser for files created within a Packages node (or on individual packages). As a package may be a merge of more directories, the standard - directory based - chooser is not sufficient. May require cooperation w/ openide/core to override the default UI.
*** Issue 30595 has been marked as a duplicate of this issue. ***
This might require some API changes for communicating the location to the rest of template wizard. We will probably have to change the contract how template wizards are created, because they now use the location panel from openide.
*** Issue 28644 has been marked as a duplicate of this issue. ***
*** Issue 34992 has been marked as a duplicate of this issue. ***
Created attachment 11110 [details] ui of target chooser
Honzo, I dare to do some work for you :-) and I've checked in the UI for target chooser based on ui recomendations. I also plan to resolve the API part: making the target chooser reuable for modules that build on top of java (this is actually my real selfish motivation :-). I plan expose the target chooser as an instance file in java nature. Is that ok? Any suggested name/location?
Dare? Why? No fear! The only problem is that we have not had final ui specification yet so the ui can change. I am appreciating you can invest your time. I would not recommend to expose the chooser in the nature and to consider it as the api. Why not to introduce an api method? public final class JavaProjectUtils { public static TW.I createTargetChooser(FileObject fo); }
no problem with that, static method it is!
Please don't make that implementation static. The API module was free from UI implementation so far; an API accessor for a UI provided from an implementation module is much better. In the future you may need some bits of JavaProject implementation internals for smooth working, and you won't get them in the API module. BTW the instance within the nature has an advantage: the implementation can be replaced by an extension nature.
Created attachment 11141 [details] commit log
I think that Svata has a valid argument. I putted the registration in Wizards\ folder in java nature. I think that this is done now.
As described in http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss the current work on projects prototype has been stopped. Marking issue as VERIFIED --->
---> CLOSED