Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to refesh the diagram in the GMF editor by interval?
How to refesh the diagram in the GMF editor by interval? [message #225277] Thu, 09 April 2009 13:02 Go to next message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Hello,

I already use the GMF got a graphic editor. now I want to refresh the
content of the editor by a timer, for example , refresh the editor by 1s
interval.

Do you have any idea about this or give me some advice or know similar
open source project about this?

regards,
changqing
Re: How to refesh the diagram in the GMF editor by interval? [message #225285 is a reply to message #225277] Thu, 09 April 2009 13:16 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello changqing,

Wich type or ferresh do you mean? diagram content will be updated automatically
on any changes in underlying domain/notation models and if one of the loaded
eclipse reaources was changed..

-----------------
Alex Shatalin
Re: How to refesh the diagram in the GMF editor by interval? [message #225376 is a reply to message #225285] Fri, 10 April 2009 01:23 Go to previous messageGo to next message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Hello Alex Shatalin,

Thanks for your help!

My problem is that I want to make the figures refresh by interval. I mean
that I want to make the animated figures and then I need to refresh them.
Do you have any idea about this?
Re: How to refesh the diagram in the GMF editor by interval? [message #225402 is a reply to message #225376] Fri, 10 April 2009 07:48 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello changqing,

If you whant to change figures by timer without any connetions with underlying
domain/notation models then it think this code should be implemented in CustomFigure
used to visualize this particular diagram element.

-----------------
Alex Shatalin
Re: How to refesh the diagram in the GMF editor by interval? [message #225450 is a reply to message #225402] Fri, 10 April 2009 09:04 Go to previous messageGo to next message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks Alex Shatalin,

Your suggestion sounds great, but if I want a figure which is default,
like rectangle, to be controlled by timer, I need to find its code? or
maybe I can control the canvas? How to do it?

Thanks again and eager to see your answer!

Regards,
changqing
Re: How to refesh the diagram in the GMF editor by interval? [message #225490 is a reply to message #225450] Fri, 10 April 2009 12:04 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello changqing,

i suggest you creating Custom composite figure (invisible Rectangle with
the layout) and place desired Rectangle into this figure. Then (on second
time step) you have to substitute this figure with ellipse - just remove
rectangle from the parent invisible one and place new ellipse there.

-----------------
Alex Shatalin
Re: How to refesh the diagram in the GMF editor by interval? [message #225809 is a reply to message #225490] Tue, 14 April 2009 12:36 Go to previous messageGo to next message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Thank you Alex Shatalin for your help!

Do you know how to get the objects in the editor, includes all of the
figures and its actions? And I also ask in another message but nobody
answer me...

Thanks again!

Regards,
changqing
Re: How to refesh the diagram in the GMF editor by interval? [message #225851 is a reply to message #225809] Tue, 14 April 2009 13:09 Go to previous messageGo to next message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello changqing,

> Do you know how to get the objects in the editor, includes all of the
> figures and its actions? And I also ask in another message but nobody
> answer me...
Do you mean all figures? You can get it from editor selection.

-----------------
Alex Shatalin
Re: How to refesh the diagram in the GMF editor by interval? [message #226053 is a reply to message #225851] Wed, 15 April 2009 00:54 Go to previous message
changqing is currently offline changqingFriend
Messages: 16
Registered: July 2009
Junior Member
Thanks Alex Shatalin!

I will try to find the editor selection.

Best wishes,
changqing
Previous Topic:Polygon and ScalablePolygon
Next Topic:Adding a connection using a context menu action
Goto Forum:
  


Current Time: Wed Apr 24 20:55:11 GMT 2024

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

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

Back to the top