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 29321 - NFT Location Chooser for use inside Packages node
Summary: NFT Location Chooser for use inside Packages node
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: Other Linux
: P1 blocker (vote)
Assignee: Jan Pokorsky
URL:
Keywords: API
: 28644 30595 34992 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-05 16:17 UTC by Svata Dedic
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: TASK
Exception Reporter:


Attachments
ui of target chooser (2.29 KB, text/plain)
2003-07-24 10:00 UTC, Pavel Buzek
Details
commit log (390 bytes, text/plain)
2003-07-25 13:32 UTC, Pavel Buzek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Svata Dedic 2002-12-05 16:17:55 UTC
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.
Comment 1 Vitezslav Stejskal 2003-04-04 16:05:02 UTC
*** Issue 30595 has been marked as a duplicate of this issue. ***
Comment 2 Vitezslav Stejskal 2003-04-04 16:07:54 UTC
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.
Comment 3 Vitezslav Stejskal 2003-04-04 16:39:19 UTC
*** Issue 28644 has been marked as a duplicate of this issue. ***
Comment 4 Pavel Buzek 2003-07-23 14:19:43 UTC
*** Issue 34992 has been marked as a duplicate of this issue. ***
Comment 5 Pavel Buzek 2003-07-24 10:00:30 UTC
Created attachment 11110 [details]
ui of target chooser
Comment 6 Pavel Buzek 2003-07-24 10:03:21 UTC
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?
Comment 7 Jan Pokorsky 2003-07-24 14:32:14 UTC
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);
}
Comment 8 Pavel Buzek 2003-07-24 16:34:39 UTC
no problem with that, static method it is!
Comment 9 Svata Dedic 2003-07-24 19:24:16 UTC
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.

Comment 10 Pavel Buzek 2003-07-25 13:32:32 UTC
Created attachment 11141 [details]
commit log
Comment 11 Pavel Buzek 2003-07-25 13:34:40 UTC
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.
Comment 12 Jan Becicka 2003-11-25 13:59:40 UTC
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 --->
Comment 13 Jan Becicka 2003-11-25 14:08:29 UTC
---> CLOSED