|
Re: Diagram Initialization [message #48345 is a reply to message #48312] |
Fri, 15 September 2006 02:41 |
Eclipse User |
|
|
|
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 |
Martin Herbort 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 |
Eclipse User |
|
|
|
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
>>
|
|
|
Powered by
FUDForum. Page generated in 0.03336 seconds