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 127512 - edit control for modeling element is not working as expected
Summary: edit control for modeling element is not working as expected
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-15 19:59 UTC by Peter Lam
Modified: 2008-03-10 18:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-02-15 19:59:00 UTC
edit control is not in edit mode after an Enter is pressed. An extra mouse click is needed to get in the edit mode after
pressing Enter key on a selected element.

Since this is basic functionality of editing element names, the functionality should be similar to the one in NB 6.0. At
the moment it blocks test automation.
Comment 1 Sergey Petrov 2008-02-15 20:51:17 UTC
in general all cases, Enter, F2, start typing do not work now
Comment 2 Sherry Zhou 2008-02-26 23:36:45 UTC
Since edit control is not on automatically when element is selected, you have to triple click the text 
to enter inline edit mode. it is hard for automation test to find coordination to click on as different
 element name has different coordination location.
Comment 3 Trey Spiva 2008-03-05 14:47:08 UTC
The problem was two fold.  First when the edit control became active, the edit part of the edit control did not get focus.  Therefore you could not see you 
could not simply press Enter then start typing.  Since the edit control did not have proper focus, the selected section of the edit control did not appear.  
Therefore there was no visual clue (or at least very little) that you where actually in edit mode.

Second problem was that the element you expected to go into edit mode was not usally the widget to go into edit mode.  When you hit the Enter key the last 
widget node added to the scene would be the node that would be made editable.  To make things worse, the last feature on the last node is actually what was 
made editable.

Both problems are now fixed.
Comment 4 Peter Lam 2008-03-06 22:49:09 UTC
I re-open this because I still see other problems.
1. after typing in element name and press the Enter key, the element is still selected & at least it's still
highlighted, but pressing the Enter key again does not put it in edit mode.
2. after typing in element name and press the Enter key, the element is still selected. DnD another element from the
palette to the diagram. After the new element is dropped (mouse button is released), the previously edited element is
now unselected and the newly dropped element is selected. But pressing the Enter key does not get the newly dropped
element in  edit more. Instead, the previously edited element (even though it's now unselected) is in edit mode.
3. pressing Ctrl-Enter opens up a new line and put the flashing cursor there but can't type in anything. 
4. after pressing Ctrl-Enter on the comment element, a mouse click is still needed to get in edit mode. This is the same
for the Invocation element in activity diagram.

Comment 5 Trey Spiva 2008-03-07 22:10:54 UTC
I have fixed most of the issues in your list.  I am confused by point 3, since hitting the CTRL-Enter key before you are in edit mode will beep at you.  

Change set: http://hg.netbeans.org/uml-meteora/rev/b891723b4590
Comment 6 Peter Lam 2008-03-10 16:44:45 UTC
For #3, when you're already in edit mode.
Comment 7 Peter Lam 2008-03-10 18:07:46 UTC
verified in latest build.
major issues have been fixed. As for item #3, a lower priority issue will be opened for tracking instead.