jtulach commented on code in PR #9629:
URL: https://github.com/apache/netbeans/pull/9629#discussion_r4092023181
##########
ide/projectui/src/org/netbeans/modules/project/ui/actions/SetMainProject.java:
##########
@@ -162,7 +162,7 @@ public void run() {
"LBL_NoneMainProject_Name=&None"
})
private void createSubMenu(Project[] projects) {
- Arrays.sort(projects, OpenProjectList.projectByDisplayName());
Review Comment:
> seeing ... lazy/non-blocking init mechanisms where display names were used
only when available.
- it may be in ergonomics:
https://github.com/apache/netbeans/blob/4d2a85c0e27052ba3f66a868748b7e93859a6fb6/ergonomics/ide.ergonomics/src/org/netbeans/modules/ide/ergonomics/fod/FeatureProjectFactory.java#L560-L568
- it may also be in `LazyProject`
https://github.com/apache/netbeans/blob/4d2a85c0e27052ba3f66a868748b7e93859a6fb6/ide/projectui/src/org/netbeans/modules/project/ui/OpenProjectList.java#L1431
- in both situations the display name may be missing/out of date
- however in both situations the URL/path is always the same
- at most a project disappears when the path no longer exists
- but no reordering shall happen while the projects "materialize"
--
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