Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Dynamic creation of ConnectionAnchors
Dynamic creation of ConnectionAnchors [message #247827] Thu, 19 March 2009 13:51 Go to next message
Matthieu is currently offline MatthieuFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,

I would like to create a node which can have always an available
ConnectionAnchor (i.e. add new anchor by itself).
For the moment, I have found a solution which consists in adding a
refreshAnchors() method which is called by refreshVisuals() method. The
first connection is OK but the problem with this solution comes when you
want to draw a second connection : the connection cannot find the location
of the second anchor! Indeed refreshVisuals() method (of the NodeEditPart)
is not called and I need to move or resize the NodeFigure if I want to see
the connection to go to the correct location.

I guess I should call refreshAnchors() at the end of the connection but I
do not know where exactly.I have been trying to find a solution for 2
days and now I have any idea how I can solve this problem so my questions
are very simple :
- Which method should call refreshAnchors() ?
- If it is a wrong way to manage this feature, how should I do ?

Thanks,
Matthieu
Re: Dynamic creation of ConnectionAnchors [message #247908 is a reply to message #247827] Wed, 25 March 2009 08:21 Go to previous message
Matthieu is currently offline MatthieuFriend
Messages: 7
Registered: July 2009
Junior Member
Hi,
Is there any specialist in connection mechanism in order to explain to me
(or give me information about...)"how I can have a feedback of my
connection to call the method I want to use" ?

The questions of my previous post still need answers so I am listening to
you if you have any piece of information about this topic.

Thanks,
Matthieu
Previous Topic:[Announce] GEF 3.5.0 I200903161158 is available
Next Topic:Palette Viewer
Goto Forum:
  


Current Time: Tue Apr 23 11:45:17 GMT 2024

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

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

Back to the top