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 58958 - Ordering of invisible toolbars is not respected
Summary: Ordering of invisible toolbars is not respected
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: USABILITY
Depends on:
Blocks:
 
Reported: 2005-05-16 22:23 UTC by Peter Zavadsky
Modified: 2008-12-22 16:37 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Zavadsky 2005-05-16 22:23:16 UTC
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).
Comment 1 David Simonek 2005-05-17 09:02:58 UTC
Passing to Standa.
Comment 2 Stanislav Aubrecht 2005-08-22 10:42:42 UTC

*** This issue has been marked as a duplicate of 44160 ***
Comment 3 Peter Zavadsky 2005-08-22 16:41:01 UTC
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).
Comment 4 Stanislav Aubrecht 2005-08-30 10:11:46 UTC
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
Comment 5 Peter Zavadsky 2005-08-30 17:48:25 UTC
Thanks for fixing this. Pleaes, just specify somewhere how the ordering is declared.
Comment 6 Stanislav Aubrecht 2005-08-31 08:35:55 UTC
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
Comment 7 Stanislav Aubrecht 2005-08-31 08:38:52 UTC
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.
Comment 8 Zdenek Konecny 2005-11-18 13:12:37 UTC
verified, build 20051117