Please use the Apache issue tracking system for new NetBeans issues (https://issues.apache.org/jira/projects/NETBEANS0/issues) !!
Bug 107550 - Need way to indicate that some files in a folder should not be ordered
Need way to indicate that some files in a folder should not be ordered
Status: RESOLVED FIXED
Product: platform
Classification: Unclassified
Component: Filesystems
6.x
All All
: P3 (vote)
: 6.x
Assigned To: Jesse Glick
issues@platform
:
Depends on:
Blocks: 103187
  Show dependency treegraph
 
Reported: 2007-06-21 00:52 UTC by Jesse Glick
Modified: 2008-12-22 14:47 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2007-06-21 00:52:56 UTC
Some folders, such as Templates, are ordered in part yet contain children, such as Project, which do not need to be
ordered (e.g. because they are hidden from view). If you omit the position attribute on them, you get a spurious
warning. So it is desirable to add some position attribute, yet the actual value is irrelevant (but there should be no
warnings about several such children having the same arbitrary position).

Simple solution is to suppress the warning about multiple children sharing a position in case that position is 0 (zero).
Comment 1 Jesse Glick 2007-06-21 00:59:04 UTC
Checking in nbbuild/antsrc/org/netbeans/nbbuild/LayerIndex.java;
/shared/data/ccvs/repository/nbbuild/antsrc/org/netbeans/nbbuild/LayerIndex.java,v  <--  LayerIndex.java
new revision: 1.4; previous revision: 1.3
done
Checking in openide/fs/src/org/openide/filesystems/Ordering.java;
/shared/data/ccvs/repository/openide/fs/src/org/openide/filesystems/Ordering.java,v  <--  Ordering.java
new revision: 1.3; previous revision: 1.2
done
Checking in openide/fs/test/unit/src/org/openide/filesystems/OrderingTest.java;
/shared/data/ccvs/repository/openide/fs/test/unit/src/org/openide/filesystems/OrderingTest.java,v  <--  OrderingTest.java
new revision: 1.3; previous revision: 1.2
done
Comment 2 _ rkubacki 2007-06-24 18:58:29 UTC
Personally I do not like this too much. Can't we move all this testing to tests where we can filter all the stuff where
our logging is false warning alarm?
Comment 3 Jesse Glick 2007-06-25 15:03:08 UTC
I am already preparing a commit validation test for folder ordering. (Runs but has a lot of failures yet to be
corrected.) The test just tries to order every folder in SFS and checks for logged warnings. But that is useless for
third-party modules.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo