This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
When I select an element in the element tree, nothing happens in a diagram. The evident and convenient decision would be to select the element in a diagram, when it is single-clicked in the tree. Double click does another thing: when I double-click an element, it is selected and diagram view is moved to center the element.
We will navigate to the element if you double click on a node in the project tree. The problem is which diagram to select the element on. A model element can be in multiple diagrams.
At least it can be done in the such cases: - the element exists on the current diagram (select it in the current diagram without positioning) - the element exists only on one diagram (open that diagram and select the element without positioning)
It may have no sense to select without centering, because an element may be out of visible area so no visual feedback on selections in this case. It also isn't so good to open diagram just after selection, no classes are opened after selection, only after a click, also every selection will take much more time.
You suggestions would be confusing. First as Sergey said, what happens if the node is not in the visible area of the diagram. Second, the user will soon start to ask, why does it navigate sometimes, and not others. Also, there is no other tool in NB that uses the project tree to navigate via the single click gesture. All other tools use the double click. Why the single click means select, not navigate. Event the Navigator, which is designed for navigation uses the double click to navigate, not the single click. The Single click should be used to only select the node, so things like the navigator and property editor can respond. We should not mix gestures and change the NetBeans look and feel.