Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Diagram Initialization
Diagram Initialization [message #48312] Thu, 14 September 2006 22:39 Go to next message
Martin Herbort is currently offline Martin HerbortFriend
Messages: 30
Registered: July 2009
Member
Hello everybody,

I have a small UML editor extended by product line engineering features
that Thomas Weiler generated with GMF. Working with the editor works fine.
However, when I delete the diagram file and re-initialize it from the
model file, all links (i.e. associations) are missing.

Have you got any ideas?

Regards,

Martin
Re: Diagram Initialization [message #48345 is a reply to message #48312] Fri, 15 September 2006 02:41 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

(1) Are those associations saved to the model?

(2) If they are, then when you reinitialize the diagram from the model, to
recreate them you need a CanonicalConnectionEditPolicy installed on an
editpart whose model element contains those associations. This policy
synchronizes the associations that you have in the model with the links
that you see on the diagram.

vlad



On Fri, 15 Sep 2006 00:39:26 +0200, Martin Herbort wrote:

>
> Hello everybody,
>
> I have a small UML editor extended by product line engineering features
> that Thomas Weiler generated with GMF. Working with the editor works fine.
> However, when I delete the diagram file and re-initialize it from the
> model file, all links (i.e. associations) are missing.
>
> Have you got any ideas?
>
> Regards,
>
> Martin
Re: Diagram Initialization [message #50429 is a reply to message #48345] Mon, 18 September 2006 22:45 Go to previous messageGo to next message
Martin Herbort is currently offline Martin HerbortFriend
Messages: 30
Registered: July 2009
Member
Hi,

where can I find a description about all the different roles concerning
EditPolicies?

Thanks,

Martin

Vlad Ciubotariu wrote:
> (1) Are those associations saved to the model?
>
> (2) If they are, then when you reinitialize the diagram from the model, to
> recreate them you need a CanonicalConnectionEditPolicy installed on an
> editpart whose model element contains those associations. This policy
> synchronizes the associations that you have in the model with the links
> that you see on the diagram.
>
> vlad
>
>
>
> On Fri, 15 Sep 2006 00:39:26 +0200, Martin Herbort wrote:
>
>> Hello everybody,
>>
>> I have a small UML editor extended by product line engineering features
>> that Thomas Weiler generated with GMF. Working with the editor works fine.
>> However, when I delete the diagram file and re-initialize it from the
>> model file, all links (i.e. associations) are missing.
>>
>> Have you got any ideas?
>>
>> Regards,
>>
>> Martin
>
Re: Diagram Initialization [message #50457 is a reply to message #50429] Tue, 19 September 2006 00:50 Go to previous message
Eclipse UserFriend
Originally posted by: vcciubot.uwaterloo.ca

There's limited info in the gmf programmer's manual and the associated
info. Open the help contents in eclipse and look for gmf in the table of
contents.

Explore the type hierarchy of EditPolicy.
If you have questions, please post :) so we can all benefit.

cheers
vlad

Here's more info on the canonical policy:

Basically, since gmf works like gef on the surface, it must use a model
(called notational model) that gef accesses. These are the views: Diagram,
Node, Edges etc.

The edit parts pick up this model and use it to create their own children
edit parts and draw their figures on the screen.

Since the editor, manipulates a logical model, gmf bridges the two using
canonical policies. These policies listen to the real model for updates
and synchronize the real model with the notational model. The changes
reflected in the notational model are picked up by EditParts and so on.



On Tue, 19 Sep 2006 00:45:54 +0200, Martin Herbort wrote:

>
>
> Hi,
>
> where can I find a description about all the different roles concerning
> EditPolicies?
>
> Thanks,
>
> Martin
>
> Vlad Ciubotariu wrote:
>> (1) Are those associations saved to the model?
>>
>> (2) If they are, then when you reinitialize the diagram from the model, to
>> recreate them you need a CanonicalConnectionEditPolicy installed on an
>> editpart whose model element contains those associations. This policy
>> synchronizes the associations that you have in the model with the links
>> that you see on the diagram.
>>
>> vlad
>>
>>
>>
>> On Fri, 15 Sep 2006 00:39:26 +0200, Martin Herbort wrote:
>>
>>> Hello everybody,
>>>
>>> I have a small UML editor extended by product line engineering features
>>> that Thomas Weiler generated with GMF. Working with the editor works fine.
>>> However, when I delete the diagram file and re-initialize it from the
>>> model file, all links (i.e. associations) are missing.
>>>
>>> Have you got any ideas?
>>>
>>> Regards,
>>>
>>> Martin
>>
Previous Topic:cannot generate model code
Next Topic:Problem creating Polyline Decoration
Goto Forum:
  


Current Time: Sun Dec 22 06:25:11 GMT 2024

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

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

Back to the top