Creating custom connections [message #239873] |
Mon, 19 November 2007 12:33 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03687 seconds