neilcsmith-net commented on PR #9602: URL: https://github.com/apache/netbeans/pull/9602#issuecomment-5568071203
Firstly, thank you for looking at this. It's a long-standing request, and an option to provide it is much needed. I don't want it to come across as negative if I say that both approaches are flawed in my opinion - I think the actual solution lies between the two. This PR is changing the behaviour in the right place, so it just works for all project types, but I still think it should affect the node model. If you do want to keep this entirely visual then I think using whitespace indenting is the wrong approach. If it's tweaked to move the control, even worse. A tree should behave like a tree! We're going to get issue reports if we break user's expectations there. An alternative might be to offer the option of a prefix just to the title of the project nodes based on their depth, without indenting the children. Mixed with topological sorting, it covers some of the visual differentiation. ``` > Project One > - Child Project One > - Child Project Two > -- Grandchild Project > Project Two ``` On the other hand, I think the correct approach is to decorate the node model underneath the tree view, so the tree continues to work as expected without any adaptation. I mentioned PackageView on the other PR, because it has this ability to change a tree view to a flat or reduced view using filter nodes. In some ways it seems a good parallel of this problem? Why not use FilterNodes here too, and allow options to display opened projects inside parent project (if open), both before or after the existing project node children? We can keep the existing flat view, and keep it as default until we're happy this solves all cases. Doing this would keep the changes localized and allow the project UI to provide a solution for all project types automatically. An API could still be added later if there was a pressing need for project types to be able to customize this in some way later. After we know what type of context information the project type requires to do that well. -- 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
