selection in ecore editor reverting to previous node [message #627094] |
Wed, 22 September 2010 16:56  |
Eclipse User |
|
|
|
I've noticed a selection issue that involves interaction between property sheet and the emf generated editor, which can be demonstrated in the ecore editor.
1. Modify a field in your property sheet.
2. Without changing focus from the property sheet field, select a new node in the ecore editor.
What I'd expect to happen is something similar to what happens when you select a new field in the property sheet, which is the original field completes the assignment, and the selection stays on the new cell.
What happens if you select a field in the editor (moving from the property sheet) is that the original field in the property sheet completes its assignment, but the selection in the editor page jumps back to the original node.
|
|
|
Re: selection in ecore editor reverting to previous node [message #627884 is a reply to message #627094] |
Thu, 23 September 2010 02:23   |
Eclipse User |
|
|
|
Jay,
Invoking a command generally updates the selection to be the object
affected by the command. E.g., when you create a child, the child is
selected. So while what you describe might be a little annoying, it is
expected. If you complete the cell editing (e.g., with an enter) before
you select, you'll get different behavior.
Jay Norwood wrote:
> I've noticed a selection issue that involves interaction between
> property sheet and the emf generated editor, which can be
> demonstrated in the ecore editor.
>
> 1. Modify a field in your property sheet.
> 2. Without changing focus from the property sheet field, select a new
> node in the ecore editor.
>
>
> What I'd expect to happen is something similar to what happens when
> you select a new field in the property sheet, which is the original
> field completes the assignment, and the selection stays on the new cell.
>
> What happens if you select a field in the editor (moving from the
> property sheet) is that the original field in the property sheet
> completes its assignment, but the selection in the editor page jumps
> back to the original node.
>
>
|
|
|
|
|
Re: selection in ecore editor reverting to previous node [message #628773 is a reply to message #628704] |
Fri, 24 September 2010 01:36  |
Eclipse User |
|
|
|
I recall there are gui development guidelines which say you shouldn't do things like this. Selection is something the user owns.
Have you considered what issues this behavior might cause with gui test code? I've written a number of test cases with swtbot, and it is very tedious to have to work around such cases where a program decides to select something other than what you have specified.
|
|
|
Powered by
FUDForum. Page generated in 0.03313 seconds