Skip to main content



      Home
Home » Modeling » EMF » how to select next element after deleting one
how to select next element after deleting one [message #412188] Fri, 17 August 2007 05:52 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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.
Previous Topic:JMerge Support for Java5 Annotations
Next Topic:ant for JET?
Goto Forum:
  


Current Time: Wed Nov 05 10:51:24 EST 2025

Powered by FUDForum. Page generated in 0.03891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top