Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Firing command after perspective is changed(Need to fire a command after the perspective has changed and finished rendering)
Firing command after perspective is changed [message #1007182] Mon, 04 February 2013 14:57 Go to next message
Terry Jahelka is currently offline Terry Jahelka
Messages: 23
Registered: February 2012
Junior Member
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 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25952
Registered: July 2009
Senior Member
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?
Previous Topic:Is there a better way to handle this?
Next Topic:Node Model outline
Goto Forum:
  


Current Time: Sat Aug 02 02:55:53 EDT 2014

Powered by FUDForum. Page generated in 0.08857 seconds