how do I add a new connector to an existing node? [message #82714] |
Mon, 04 December 2006 16:12  |
Eclipse User |
|
|
|
Originally posted by: liam.morley.baesystems.com
I'd like to add a new connector in a new plugin to connect objects in an
existing diagram. I tried adding a new policy under a new EditPartProvider,
but when I open a diagram, it creates EditPartProviders for the existing
nodes, and not my new EditPartProvider, so my policy is never picked up. I
imagine I have to add my policy to one of the existing EditPartProviders?
Liam Morley
|
|
|
Re: how do I add a new connector to an existing node? [message #82995 is a reply to message #82714] |
Tue, 05 December 2006 08:24  |
Eclipse User |
|
|
|
Liam,
The code that needs to be added from the diagram runtime point of view
is described in the tutorial titled "Creating Connections" in the GMF
documentation, available here:
http://help.eclipse.org/help31/topic/org.eclipse.gmf.doc/tut orials/diagram/createConnection.html
The tutorial uses the Logic Diagram Example code which is all in the one
diagram plugin, but you can easily move any provider to its own plugin.
Regards,
Cherie
Liam Morley wrote:
> I'd like to add a new connector in a new plugin to connect objects in an
> existing diagram. I tried adding a new policy under a new EditPartProvider,
> but when I open a diagram, it creates EditPartProviders for the existing
> nodes, and not my new EditPartProvider, so my policy is never picked up. I
> imagine I have to add my policy to one of the existing EditPartProviders?
>
> Liam Morley
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03773 seconds