Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Creating custom connections
Creating custom connections [message #239873] Mon, 19 November 2007 12:33
Eclipse UserFriend
Originally posted by: serefarikan.kurumsalteknoloji.com

Hi,
I need to create different connections between nodes. It appears that
the right place to set the model for connection type A or B is the
ConnectionCreateCommand which will be returned from
getConnectionCompleteCommand.
The problem is, When I add a ConnectionCreationToolEntry to a tool
palette, I do not seem to have an option to state the model of the
connection to be created. CombinedTemplateCreationEntry allows this
easily by letting me state the model for target object.
So what is the way to create a connection creation tool that will carry
the type of connection model? At the moment I can achive this partly by
using linestyle, but I am not comfortable with it. I'll have to define
my own lineStyle constants that'll be mapped to connection model types,
but what if some future update in connection types clash with my constants?
In short, I'd like to be able to have different types of connections
between same objects, and I need a way for this. Any help would be
appreciated a lot

Best Regards
Seref Arikan
Previous Topic:getTargetingConditional on SelectionTool
Next Topic:Implementing a DEVS modeling plugin
Goto Forum:
  


Current Time: Thu Apr 25 15:51:52 GMT 2024

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

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

Back to the top