Connection problems - getConnectionCompleteCommand() called when created source [message #220659] |
Thu, 03 August 2006 05:22  |
Eclipse User |
|
|
|
I'm having problems getting connections to work. I thought I had completed
all the steps necessary to get connections to work but I must have misssed
something?
When the connection tool hovers over the intended source figure,
getConnectionCreateCommand() is called - this sets the source before I've
clicked on the figure?
When I then click on the figure to make it the source,
getConnectionCompleteCommand() is called; thus setting the target to be
the same as the source. Surely getConnectionCreateCommand() should be
getting called here, not getConnectionCompleteCommand()?
Anybody got any idea what I may doing wrong (or misunderstanding)?
Thanks in advance.
|
|
|
|
|
Re: Connection problems - getConnectionCompleteCommand() called when created sou [message #220713 is a reply to message #220699] |
Thu, 03 August 2006 10:01  |
Eclipse User |
|
|
|
Thanks,
The loopback connection confused me.
My problem was due to not implementing getModelTarget/SourceConnections
correctly.
Nhu Le wrote:
> That's for a loopback connection. In your getConnectionCompleteCommand,
> you should check to make sure the source object is not the same as the
> target object if you don't want to have a loopback connection. Remember
> that the connectioncompletecommand is not executed until you click again.
> Nhu Le
> Mark Robinson wrote:
>> I'm having problems getting connections to work. I thought I had
>> completed all the steps necessary to get connections to work but I must
>> have misssed something?
>>
>> When the connection tool hovers over the intended source figure,
>> getConnectionCreateCommand() is called - this sets the source before
>> I've clicked on the figure?
>>
>> When I then click on the figure to make it the source,
>> getConnectionCompleteCommand() is called; thus setting the target to be
>> the same as the source. Surely getConnectionCreateCommand() should be
>> getting called here, not getConnectionCompleteCommand()?
>> Anybody got any idea what I may doing wrong (or misunderstanding)?
>>
>> Thanks in advance.
>>
|
|
|
Powered by
FUDForum. Page generated in 0.27056 seconds