Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Reference based links & Connection View creation.
Reference based links & Connection View creation. [message #191386] Fri, 06 June 2008 08:45 Go to next message
Eclipse UserFriend
Originally posted by: yann.davin.gmail.com

Hello,

I've a Element A which has a reference Ref to a element B.
I've created a referenced based link to be able to set the Ref to a element B when
I create a link between a existing element A and a element B.

When I open the graph editor the reference between A and B the connection view of the Link is correctly
displayed.
When I use the tool to create a link with the mouse the behaviour is perfect.

But if I create the reference manually for example by setting the reference with the property view,
the connection view of the link is not created.

I've tried to create the view manually in the handleNotificationEvent method of the EditPart but without success, may be
because the method is in read only transaction mode.

I would like to know what can I do to create the link when the reference if modified without using the palette tool ?
Why the link is correcly create when I open the diagram and not when I modify the reference ?

Thanks,

Yann
Re: Reference based links & Connection View creation. [message #191507 is a reply to message #191386] Fri, 06 June 2008 17:17 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello yann,

> I've tried to create the view manually in the handleNotificationEvent
> method of the EditPart but without success, may be
Try calling generated ???DiagramUpdateCommand from there.

> Why the link is correcly create when I open the diagram and not when I
> modify the reference ?
Generated ???CanonicalEditoPolicy for diagram is called during the diagram
openning process. You have to call this policy on getting corresponding notification
from the domain model.

-----------------
Alex Shatalin
Previous Topic:Open sub-editors from the diagram Navigator
Next Topic:Tutorial using EMF and GMF
Goto Forum:
  


Current Time: Fri Apr 19 11:05:51 GMT 2024

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

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

Back to the top