|
Re: Problem with setting focus after Undo/Redo [message #418620 is a reply to message #418614] |
Tue, 22 April 2008 12:02 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.02913 seconds