jtulach commented on code in PR #9834:
URL: https://github.com/apache/netbeans/pull/9834#discussion_r4728026312
##########
ide/projectui/src/org/netbeans/modules/project/ui/ProjectsRootKeys.java:
##########
@@ -86,12 +93,18 @@ Collection<PrjInfo> getKeys() {
var projects = Arrays.asList(listProjects());
projects.sort(OpenProjectList.projectByPath());
- var dirs = new ArrayList<PrjInfo>(projects.size());
- final java.util.Map<Project,ProjectsRootKeys.PrjInfo> snapshot = new
HashMap<>();
- var nested = new LinkedList<FileObject>();
+ Comparator<PrjInfo> byProjectDisplayName = (i1, i2) -> {
+ String n1 =
ProjectUtils.getInformation(i1.project()).getDisplayName();
+ String n2 =
ProjectUtils.getInformation(i2.project()).getDisplayName();
+ return n1.compareTo(n2);
Review Comment:
Copied the original approach with Collator and with memoizing the display
names in 1191e971c78a (merged in 39e29d1eee689fbf25778d22a67a45aef4fd4368)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists