eppleton commented on PR #9821: URL: https://github.com/apache/netbeans/pull/9821#issuecomment-7274208763
Yes, I share that feeling. I re-read 6ddf648878, 8834684f9d and 7b8c414745: - **`SubprojectsGroup` null project:** fixed. - **`processFolderChildren`:** going back to the original code and adding the single `continue` after a found project is the least risky option, and it is exactly the behavior change this PR is about. The old quirk that `getSharability(fo)` asks about the parent instead of `em` is back, but that is pre-existing and not something this PR has to fix. - **Main project:** with `getProjects()` returning the closure again when `isSubprojects()` is on, `setMainProject` keeps a subproject as main project. `isPristine()` and `projectPaths()` see the same set as before this PR. The only open point is the one you named: `open()` still computes `newOpen` from `getProjects(h, 10, 100)`, i.e. the roots only. So `toClose`/`stayOpened` don't account for subprojects when switching between groups that share a root. Moving that decision into the open logic, as you suggest, sounds like the right direction to me. -- 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
