Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 21: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 13:24 Go to previous message
Cherie Revells is currently offline Cherie RevellsFriend
Messages: 299
Registered: July 2009
Senior Member
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: Fri Sep 27 23:08:55 GMT 2024

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

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

Back to the top