Skip to main content


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 19:57 Go to next message
Terry Jahelka is currently offline Terry JahelkaFriend
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 06:20 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33216
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?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Is there a better way to handle this?
Next Topic:Node Model outline
Goto Forum:
  


Current Time: Sun Sep 22 14:27:11 GMT 2024

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

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

Back to the top