Firing command after perspective is changed [message #1007182] |
Mon, 04 February 2013 14:57  |
Eclipse User |
|
|
|
Hello,
Our application has several perspectives. We have a table view that can occur 0 - x times. When the user first activates this perspective, I need to fire a command. I've tried adding a perspective listener and using perspectiveChanged, perspectiveActivated, perspectiveOpened but all of these occur before the new perspective is fully rendered. Is there away to detect the perspective rendering is complete or trigger off the perspective changed and delay the execution of the command until rendering is complete?
|
|
|
Re: Firing command after perspective is changed [message #1007223 is a reply to message #1007182] |
Tue, 05 February 2013 01:20  |
Eclipse User |
|
|
|
Terry,
This doesn't really sound like an Xtext question... I'm not sure what
the view needs to do in response to these events, but you can always
defer something until after the current event has been processed on the
Display thread (and after any other events already pending on the
Display thread) by using Display.asyncExec.
On 04/02/2013 8:57 PM, Terry Jahelka wrote:
> Hello,
>
> Our application has several perspectives. We have a table view that
> can occur 0 - x times. When the user first activates this
> perspective, I need to fire a command. I've tried adding a
> perspective listener and using perspectiveChanged,
> perspectiveActivated, perspectiveOpened but all of these occur before
> the new perspective is fully rendered. Is there away to detect the
> perspective rendering is complete or trigger off the perspective
> changed and delay the execution of the command until rendering is
> complete?
|
|
|
Powered by
FUDForum. Page generated in 0.03731 seconds