Skip to main content



      Home
Home » Eclipse Projects » GEF » ReconnectRequest: Information about the old source/target
ReconnectRequest: Information about the old source/target [message #211535] Mon, 13 March 2006 15:53 Go to next message
Eclipse UserFriend
Hi,

I have a problem with the ReconnectRequest. The request includes only
information about the new source or target. Is there a way to get the
old source/target from which the connection is detached?

Regards,
Jens
Re: ReconnectRequest: Information about the old source/target [message #211585 is a reply to message #211535] Tue, 14 March 2006 01:07 Go to previous messageGo to next message
Eclipse UserFriend
You should probably introduce a ReconnectCommand and refer to source and
target there.
Have a look at the 'SWT/JFace in Action' example:
http://www.manning.com/books/scarpino/source

Kind regards,

--
Andreas Schosser
Mind8 GmbH


> Hi,
>
> I have a problem with the ReconnectRequest. The request includes only
> information about the new source or target. Is there a way to get the
> old source/target from which the connection is detached?
>
> Regards,
> Jens
Re: ReconnectRequest: Information about the old source/target [message #211592 is a reply to message #211585] Tue, 14 March 2006 03:50 Go to previous messageGo to next message
Eclipse UserFriend
The problem is that my connection does not differ between target and
source. It is an association with to memberends, they are ordered but
the ordering should not express which member is source or target. Thus I
have the problem to decide which memberend I must delete. I can solve my
problem with the order but I am interested if there is another
way/request that offers information about the old source/target.

Thanks,
Jens

Andreas Schosser wrote:
> You should probably introduce a ReconnectCommand and refer to source and
> target there.
> Have a look at the 'SWT/JFace in Action' example:
> http://www.manning.com/books/scarpino/source
>
> Kind regards,
>
> --Andreas Schosser
> Mind8 GmbH
>
>
>> Hi,
>>
>> I have a problem with the ReconnectRequest. The request includes only
>> information about the new source or target. Is there a way to get the
>> old source/target from which the connection is detached?
>>
>> Regards,
>> Jens
Re: ReconnectRequest: Information about the old source/target [message #211751 is a reply to message #211535] Wed, 15 March 2006 10:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: none.us.ibm.com

how about:
reconnectRequest.getConnectionEditPart().getTarget/Source()

"Jens" <jens.bartelheimer@gmx.de> wrote in message
news:dv4m86$npi$1@utils.eclipse.org...
> Hi,
>
> I have a problem with the ReconnectRequest. The request includes only
> information about the new source or target. Is there a way to get the old
> source/target from which the connection is detached?
>
> Regards,
> Jens
Re: ReconnectRequest: Information about the old source/target [message #211766 is a reply to message #211751] Wed, 15 March 2006 13:42 Go to previous message
Eclipse UserFriend
Ah, yes, that's a solution.
Thanks

Randy Hudson wrote:
> how about:
> reconnectRequest.getConnectionEditPart().getTarget/Source()
>
> "Jens" <jens.bartelheimer@gmx.de> wrote in message
> news:dv4m86$npi$1@utils.eclipse.org...
>> Hi,
>>
>> I have a problem with the ReconnectRequest. The request includes only
>> information about the new source or target. Is there a way to get the old
>> source/target from which the connection is detached?
>>
>> Regards,
>> Jens
>
>
Previous Topic:Drag drop - creating multiple elements at once
Next Topic:RTF Editor using GEF
Goto Forum:
  


Current Time: Fri May 16 09:34:25 EDT 2025

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

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

Back to the top