Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem with setting focus after Undo/Redo
Problem with setting focus after Undo/Redo [message #418614] Tue, 22 April 2008 08:22 Go to next message
Supreetha H R is currently offline Supreetha H RFriend
Messages: 24
Registered: July 2009
Junior Member
Hello,

In our RCP application, we have Undo/Redo operations (through commands)
which we could do on any operations done in editor area and outline
view,which is working fine, but i am facing problems in setting the focus
after doing Undo/Redo of previous operation. Right now i am doing a
workaround to get the object which was affected and setting the focus
manually. But in some condtions it fails :-(

Is there a way to set the focus of the affected object (Say, i deleted a
node in the tree in outline view, then i do undo, focus should be in the
reappeared node in outline view)? Or should it be done automatically?

Regards,
Supreetha
Re: Problem with setting focus after Undo/Redo [message #418620 is a reply to message #418614] Tue, 22 April 2008 12:02 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Supreetha,

Comments below.

Supreetha H R wrote:
> Hello,
>
> In our RCP application, we have Undo/Redo operations (through
> commands) which we could do on any operations done in editor area and
> outline view,which is working fine, but i am facing problems in
> setting the focus after doing Undo/Redo of previous operation. Right
> now i am doing a workaround to get the object which was affected and
> setting the focus manually. But in some condtions it fails :-(
Do you really mean setting the focus or are you taking about setting the
selection?
>
> Is there a way to set the focus of the affected object (Say, i deleted
> a node in the tree in outline view, then i do undo, focus should be in
> the reappeared node in outline view)? Or should it be done automatically?
The selection should select whatever the affected objects describe, but
you'll note that when setSelectionToViewer it only does that for the
current viewer, so if the outline isn't the current viewer, it doesn't
change the outline's selection.
>
> Regards,
> Supreetha
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EMF attributes overriding
Next Topic:EMF, WSDL and SOAP
Goto Forum:
  


Current Time: Sat Apr 27 00:36:38 GMT 2024

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

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

Back to the top