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 43505 - Categories in New Project dialog has shown as tree
Summary: Categories in New Project dialog has shown as tree
Status: CLOSED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 4.x
Hardware: All All
: P4 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks: 41535
  Show dependency tree
 
Reported: 2004-05-19 08:46 UTC by Milan Kubec
Modified: 2006-03-24 10:21 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-05-19 08:46:06 UTC
[dev-200405182245]
Categories in New Project dialog are shown in tree
for no aparent reason. Nodes will not have a
content so there should be list. UI Spec shows
only list.
Comment 1 Petr Hrebejk 2004-05-19 09:07:02 UTC
It should be tree. Trust me (or rather Tomas Zezula who implemented that)
Comment 2 Milan Kubec 2004-05-19 09:20:05 UTC
And the reason for having tree for something that doesn't have any
content underneat it? Just curious.
Comment 3 Marian Mirilovic 2004-05-19 13:35:43 UTC
I agree with Milan, 
it seems like you can choose something from subtree of category node,
but there is nothing....

Jano is it defined this way in some UI spec? 
Comment 4 jrojcek 2004-05-19 13:46:47 UTC
It should be a tree. Each category can potentionally contain subcategories. But, there are a 
few problems with the current implementation:

* there should be no turner widget visible if a category doesn't contain subcategories
* only the selected item should have the "open folder" icon; other categories should have 
"closed folder" icon
Comment 5 Petr Hrebejk 2004-05-19 16:12:59 UTC
Looks like the resolution is: we have fix the tree. OpenOnly on
selected is probably hard to implement. Let's ignore for now. No thubs
on empty categories is probably necessary.
Tomas is working on that.
Comment 6 Jesse Glick 2004-05-19 18:34:06 UTC
Can't we just simplify this and show a list and ask people not to use
subcategories?? I don't see any compelling reason for subcategories;
Jano do you have any use cases in mind?
Comment 7 Tomas Zezula 2004-05-20 12:31:39 UTC
Checking in
projectui/src/org/netbeans/modules/project/ui/TemplatesPanel.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplatesPanel.java,v
 <--  TemplatesPanel.java
new revision: 1.4; previous revision: 1.3
done
Checking in
projectui/src/org/netbeans/modules/project/ui/TemplatesPanelGUI.form;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplatesPanelGUI.form,v
 <--  TemplatesPanelGUI.form
new revision: 1.4; previous revision: 1.3
done
Checking in
projectui/src/org/netbeans/modules/project/ui/TemplatesPanelGUI.java;
/cvs/projects/projectui/src/org/netbeans/modules/project/ui/TemplatesPanelGUI.java,v
 <--  TemplatesPanelGUI.java
new revision: 1.5; previous revision: 1.4
done
Comment 8 jrojcek 2004-05-20 17:30:14 UTC
I am not sure if it is a compeling reason, but ME team (and maybe Web team) wants to put 
Sample projects into a special subcategory underneath the Mobile category. IMO, putting 
samples into New Project wizard is not the right solution, but easy to do.
Comment 9 Milan Kubec 2004-06-23 08:45:26 UTC
Verified in dev-200406230100.