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 102029 - Visibility of configuration combo is broken
Summary: Visibility of configuration combo is broken
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
Depends on: 26338
Blocks: 49652
  Show dependency tree
Reported: 2007-04-20 21:56 UTC by Jesse Glick
Modified: 2007-04-23 17:59 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-04-20 21:56:13 UTC
When I first add the config combo, it was always visible, but enabled or
disabled itself according to whether there were any configurations to select.

saubrecht then fixed this to actually hide it, not just disable it, when it was
not active.

dsimonek then made some changes to support GTK L&F. The result seems to be that
its state never changes after the IDE starts, so when you start with no
j2seproject's (or j2meproject's) open, it will be disabled and stay that way
even after opening projects.
Comment 1 Jesse Glick 2007-04-20 22:14:35 UTC
Fortunately, #26338 makes it easy to fix, without weird Swing tricks. Our first
use of the new API! :-)
Comment 2 Jesse Glick 2007-04-20 22:24:29 UTC
Checking in src/META-INF/services/org.openide.filesystems.FileSystem;
 <--  org.openide.filesystems.FileSystem
initial revision: 1.1
Checking in src/org/netbeans/modules/project/ui/actions/;
new revision: 1.8; previous revision: 1.7
Checking in nbproject/project.xml;
/shared/data/ccvs/repository/projects/projectui/nbproject/project.xml,v  <-- 
new revision: 1.34; previous revision: 1.33
Checking in src/org/netbeans/modules/project/ui/resources/layer.xml;
 <--  layer.xml
new revision: 1.78; previous revision: 1.77
Comment 3 Jaroslav Tulach 2007-04-21 17:58:22 UTC
I would consider it more safe to use weird Swing tricks (for example size of 
the button 0x0) than to empower too powerful tool like dynamic file system 

Comment 4 Jesse Glick 2007-04-23 17:59:46 UTC
Well, the Swing trick apparently did not work in GTK, which is why Dafe disabled
it. Whereas the layer changes just trigger a toolbar refresh, which should
already be well tested (e.g. by people turning on and off modules which add
toolbar buttons).