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.
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.
Fortunately, #26338 makes it easy to fix, without weird Swing tricks. Our first use of the new API! :-)
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
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.
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).