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

Summary: Visibility of configuration combo is broken
Product: projects Reporter: Jesse Glick <jglick>
Component: Generic Projects UIAssignee: Jesse Glick <jglick>
Status: RESOLVED FIXED    
Severity: blocker CC: dsimonek, jtulach, saubrecht
Priority: P2 Keywords: REGRESSION, UI
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 26338    
Bug Blocks: 49652    

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;
/shared/data/ccvs/repository/projects/projectui/src/META-INF/services/org.openide.filesystems.FileSystem,v
 <--  org.openide.filesystems.FileSystem
initial revision: 1.1
done
Checking in src/org/netbeans/modules/project/ui/actions/ActiveConfigAction.java;
/shared/data/ccvs/repository/projects/projectui/src/org/netbeans/modules/project/ui/actions/ActiveConfigAction.java,v
 <--  ActiveConfigAction.java
new revision: 1.8; previous revision: 1.7
done
Checking in nbproject/project.xml;
/shared/data/ccvs/repository/projects/projectui/nbproject/project.xml,v  <-- 
project.xml
new revision: 1.34; previous revision: 1.33
done
Checking in src/org/netbeans/modules/project/ui/resources/layer.xml;
/shared/data/ccvs/repository/projects/projectui/src/org/netbeans/modules/project/ui/resources/layer.xml,v
 <--  layer.xml
new revision: 1.78; previous revision: 1.77
done
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 
changes. 

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).