Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » how do I add a new connector to an existing node?
how do I add a new connector to an existing node? [message #82714] Mon, 04 December 2006 16:12 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
>
>
Previous Topic:What could it be without CanonicalEditPolicy installed?
Next Topic:Composite Figure
Goto Forum:
  


Current Time: Sat May 24 09:47:56 EDT 2025

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

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

Back to the top