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.
Original Jeff's comment: When a non-default toolbar is enabled in the main window, the existing toolbars (like File, Edit) are moved to the right and the recently enabled toolbar (like Memory or Debug) are placed at the left. When you turn these off, the space that was reserved to show the toolbar is retained, and therefore all of your default toolbars have been shifted to the right. In sum: It is not respected the ordering of the invisible (initially) toolbars, neither from the Toolbars folder nor from configuration file. I.e. if originally invisible toolbar is made visible first time it is placed always at the beginning (which is wrong).
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