| how to select next element after deleting one [message #412188] |
Fri, 17 August 2007 05:52  |
Eclipse User |
|
|
|
Originally posted by: harald.loehnert.brueckner.com
Hi,
how can I achieve, that after deleting an EObject (using Command-Stack
an DeleteCommand), the next object in the container is selected in the
editor. In case it was the last object, the "new" last object should be
selected.
Thanks for any help.
Harald.
|
|
|
| Re: how to select next element after deleting one [message #412201 is a reply to message #412188] |
Fri, 17 August 2007 07:49  |
Eclipse User |
|
|
|
Harald,
Whatever is returned by the command's getAffectedObjects will be
selected after the command execution completes. Keep in mind that this
means you'll likely want to change what's returned after an undo and
again after a redo.
Harald Löhnert wrote:
> Hi,
>
> how can I achieve, that after deleting an EObject (using Command-Stack
> an DeleteCommand), the next object in the container is selected in the
> editor. In case it was the last object, the "new" last object should
> be selected.
>
> Thanks for any help.
> Harald.
|
|
|
Powered by
FUDForum. Page generated in 0.04929 seconds