Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Reprensentation problem
Reprensentation problem [message #508770] Wed, 20 January 2010 09:41 Go to next message
Eclipse UserFriend
Originally posted by:


I am facing a problem with the representation of elements. Basically, I
created an editor to model a specific system. This system contains one
controller, which in turn contains a number of ports. The ports can, but
need not be connected to some other elements. For the layouting of the
ports, I provided my own layout algorithm.

What is happening now, is the following. Whenever, I place a controller (it
is programmatically initialized with a fixed number of ports), it is
rendered correctly with the ports rendered at the correct positions. I can
close and reopen the editor view and it is still rendered correctly. So far,
so good...
But, when I close Eclipse and reopen it, now the controller has lost all of
its ports. They still exist in the model file, but they do not show up in
the diagram. Closing and reopening the view does not help, but I can bring
the ports up again by placing any (!) other element on the diagram, saving
the diagram, closing, and reopening it. Nonetheless, when closing and
reopening Eclipse, the same game starts again...
However, one exception to this erroneous behavior happens, when at least one
of the ports is already connected to another element. Then everything is as
it is supposed to be: All (!) of the ports get rendered at their correct
positions, no matter whether either the editor view or Eclipse have been
closed and reopended in between.

What I could find out up to now, is that when my layout routine gets called,
at that step the controller editpart already has no child editparts for its
ports. Hence, I would assume, the problem lies somewhere else other than in
my layouting routine. As I am running out of ideas now, help is very
appreciated in order to get that problem fixed.

Versions in use:
GMF: 1.2.1
GMF SDK: 2.2.1
GMF Tooling: 2.2.0

Thanks a lot,
Re: Reprensentation problem [message #508817 is a reply to message #508770] Wed, 20 January 2010 13:22 Go to previous message
Olivier Marot is currently offline Olivier MarotFriend
Messages: 14
Registered: September 2009
Junior Member
Hi Christian,

check this post, it might help you. 1

Previous Topic:GMF Xpand migration
Next Topic:initializing canvas
Goto Forum:

Current Time: Mon Apr 19 12:10:42 GMT 2021

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

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

Back to the top