Bug 520765 - Direct Edit on tree elements should have the same behaviour than on diagram elements.
Summary: Direct Edit on tree elements should have the same behaviour than on diagram e...
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Tree (show other bugs)
Version: 5.0.0   Edit
Hardware: PC Windows NT
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2017-08-09 10:10 EDT by Jessy Mallet CLA
Modified: 2017-08-16 05:33 EDT (History)
2 users (show)

See Also:


Attachments
direct edit behaviour on tree and diagram (94.65 KB, image/png)
2017-08-09 10:10 EDT, Jessy Mallet CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jessy Mallet CLA 2017-08-09 10:10:28 EDT
Created attachment 269761 [details]
direct edit behaviour on tree and diagram

Documentation on "Editing tree Items" precise that any alpha-numeric character key activate the edition of a tree item (https://www.eclipse.org/sirius/doc/user/trees/Trees.html#editing). 
So if I want to replace the name of my item with "toto", typing "toto" will just add "oto" to the name of the item before typing because the first letter just activate the direct edit.

It will be more pleasant to have the same behaviour than with diagrams, i.e. if I type a character, it replaces the name of the item by this character. 
In this way, if I type "toto",  the item's name will be replaced by "toto".

Steps to reproduce:
* Open a tree with directEdit capability
* Select an element of the tree
* Type "toto" then "oto" is added to the item name ->KO
Comment 1 Jessy Mallet CLA 2017-08-09 11:52:56 EDT
See also bug 487428 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=487428)
Comment 2 Maxime Porhel CLA 2017-08-16 05:33:50 EDT
Behavior of direct edit tools in Table dialect should also be checked.