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.
Summary: | Ordering of invisible toolbars is not respected | ||
---|---|---|---|
Product: | platform | Reporter: | Peter Zavadsky <pzavadsky> |
Component: | Window System | Assignee: | Stanislav Aubrecht <saubrecht> |
Status: | CLOSED FIXED | ||
Severity: | blocker | CC: | jhoffman |
Priority: | P3 | Keywords: | USABILITY |
Version: | 4.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Peter Zavadsky
2005-05-16 22:23:16 UTC
Passing to Standa. *** This issue has been marked as a duplicate of 44160 *** This one doesn't seem to be duplicate of the issue #44160. That issue deals with automatic filling of new space available after hidding the other toolbar. But this issue is about specifying of order of toolbars in the declaration files (either layer or config files), none is respected. (The other issue doesn't mention ordering at all). fixed Checking in src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConfiguration.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConfiguration.java,v <-- ToolbarConfiguration.java new revision: 1.31; previous revision: 1.30 done Checking in src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConstraints.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConstraints.java,v <-- ToolbarConstraints.java new revision: 1.4; previous revision: 1.3 done Checking in src/org/netbeans/core/windows/view/ui/toolbars/ToolbarRow.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/toolbars/ToolbarRow.java,v <-- ToolbarRow.java new revision: 1.5; previous revision: 1.4 done Thanks for fixing this. Pleaes, just specify somewhere how the ordering is declared. the order of toolbars is defined by the order of their declarations in layer.xml e.g. <Configuration> <Row> <Toolbar name="File" /> <Toolbar name="Edit" /> <Toolbar name="Build" /> <Toolbar name="Debug" visible="false" /> <Toolbar name="Memory"/> <Toolbar name="Versioning" visible="false" /> </Row> </Configuration> means that the first toolbar will be File then Edit, Build, Debug (when visible) then Memory etc you can also specify "position" attribute for any of the toolbar in the layer definition. e.g. <Toolbar name="Edit" position="100"/> this means that toolbar Edit will be shown 100 pixels from the left border of the main window. this attribute takes precedence over the order of declarations. verified, build 20051117 |