Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Obtain XY position of target ends from a connection
Obtain XY position of target ends from a connection [message #166136] Thu, 20 December 2007 16:15
Eclipse UserFriend
Originally posted by: gmerin.integranova.com

Hi again! I'm overriding the getCommand method from target element of a
connection to compound new commands after the creation of the connection.

Basically what I want to do is to make some changes in the model
depending of the XY position of the ends of the connection.

This may sound quite easy since I can ask the request for the new
EdgeImpl that is going to be created. But the problem is how to obtain
the ends of the Edge. The only way I know is to search for its EditPart
and gets its figure (I will be a Polyline).

The problem comes when I get the EditPart from the EditPartRegistry. If
I ask the connectionEditPart points what I obtain is (0,0,100,100)
instead of the real bounds of the connection. Does anyone no why? any
idea to obtain the XY information of the ends of the Edge?

I would appreciate any help. Thanks in advance
Previous Topic:show properties view by double-click
Next Topic:Diagram Partitioning more than one
Goto Forum:
  


Current Time: Fri Apr 26 10:50:19 GMT 2024

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

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

Back to the top