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 128745 - Folder ordering problems
Summary: Folder ordering problems
Status: RESOLVED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ tboudreau
URL: http://deadlock.netbeans.org/hudson/j...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-28 19:35 UTC by Jesse Glick
Modified: 2008-02-28 22:06 UTC (History)
0 users

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 Jesse Glick 2008-02-28 19:35:11 UTC
Found same position 200 for both Loaders/text/x-java/Actions/java-project-separator-1.instance and
Loaders/text/x-java/Actions/org-netbeans-modules-graphicclassview-actions-GraphicViewAction.shadow

Found same position 300 for both Loaders/text/x-java/Actions/Separator1.instance and
Loaders/text/x-java/Actions/org-netbeans-modules-graphicclassview-actions-separatorAfter.instance
Comment 1 _ tboudreau 2008-02-28 19:47:26 UTC
Fixed - 7668f29f5cbe

(The more I see side effects like this and the issues with not being able to reorder things from other modules in layers, the less I think numeric position 
attributes were a good idea)
Comment 2 Jesse Glick 2008-02-28 20:27:57 UTC
How is this a side effect? You picked a position that clashed with those of existing common menu items.
Comment 3 _ tboudreau 2008-02-28 21:11:57 UTC
I didn't pick it, the new Action wizard did.

A dirty workaround would be for the new Action wizard and friends always to use odd numbers, since all of the default NB ones seem to use multiples of 100.  
The point is, having to fix such collisions is a really pointless use of anyone's time that simply does not occur with relative ordering attributes.  

Comment 4 Jesse Glick 2008-02-28 22:06:23 UTC
The Action wizard ought to be picking numbers between the endpoints you selected in the position combo. If this is not
working for you, please file a bug with steps to reproduce.

It's not a pointless use of time; it's telling NB where you want your menu item to appear. Rather straightforward. By
contrast, people spent a lot of time messing with relative ordering attributes which would routinely get broken just
because a module was uninstalled, etc., and in fact these were rather harder for the IDE's wizards to deal with than the
numbers are.