Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Starting thread after editor initialize
Starting thread after editor initialize [message #182085] Thu, 10 April 2008 09:48 Go to next message
Eclipse UserFriend
Originally posted by: novak.igor.gmail.com

Hi!

I have a thread that refreshes the view of my diagram (I get data for my
diagram elements from external source) every few minutes.

But I do not know where in which method (or to register some listener)
should I start this thread, because thread needs already initialized
editor. I call
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().getActiveEditor()
to get the active editor (I refresh only the active editor), but if I
start the thread too early editor is not initialized yet.

Thanks in advance and regards, Igor Novak
Re: Starting thread after editor initialize [message #182213 is a reply to message #182085] Thu, 10 April 2008 12:37 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Igor,

You can do it in "setInput" mthod of generated ???DiagramEditor. You'll easily
get a reference to the corresponding Editor just from there.

-----------------
Alex Shatalin
Previous Topic:How to realize drag and drop with outline TreeEditPart?
Next Topic:Generate Figures Plug-in
Goto Forum:
  


Current Time: Thu Apr 25 00:49:13 GMT 2024

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

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

Back to the top