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.

Bug 127484 - Single click on element should select it in diagram
Summary: Single click on element should select it in diagram
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-15 15:10 UTC by Mikhail Matveev
Modified: 2008-02-15 17:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Matveev 2008-02-15 15:10:25 UTC
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.
Comment 1 Trey Spiva 2008-02-15 15:35:06 UTC
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.
Comment 2 Mikhail Matveev 2008-02-15 15:54:40 UTC
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)
Comment 3 Sergey Petrov 2008-02-15 17:09:17 UTC
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.
Comment 4 Trey Spiva 2008-02-15 17:31:46 UTC
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.