ICreateConnection.create(): returning null Connection allowed? [message #881861] |
Tue, 05 June 2012 07:51  |
Eclipse User |
|
|
|
The ICreateConnection.create() method has to return a Connection. This connection is not used anywhere in the graphiti internals. Is it safe to return null or do I have to always return a valid Connection because of future extensions of graphiti?
Background: I have two Shapes A and B. If the user creates a Connection between A and B, then the AddConnectionFeature is called. In the AddConnectionFeature I create an "intermediate node N" visualized by a Shape. Then, A is connected to N and N is connected to B by two Connections (FreeFormConnections)...
That all seems to work, but I am not sure of future changes of graphiti as I would have to return a Connection that is composed of two Connections. Currently, I would just return null as that doesn't seem to matter...
|
|
|
|
Powered by
FUDForum. Page generated in 0.04004 seconds