Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » get the connection end point..
get the connection end point.. [message #1175354] Thu, 07 November 2013 17:57 Go to next message
Luciano Kelvin is currently offline Luciano Kelvin
Messages: 2
Registered: August 2013
Junior Member
I am creating a sequence diagram model with gmf, and I need the y position of the end point of a connection ..
when I use the methods
System.err.println ("X =" + this.getEnd (). + X "= y" + this.getEnd (). Y);
System.err.println ("X =" + this.getStart (). + X "= y" + this.getEnd (). Y);

but always return
X = 100 Y = 100
X = 100 Y = 0
.....
I need help ...
Re: get the connection end point.. [message #1183008 is a reply to message #1175354] Tue, 12 November 2013 15:23 Go to previous messageGo to next message
Ralph Gerbig is currently offline Ralph Gerbig
Messages: 697
Registered: November 2009
Senior Member
Hi,

to get help you need to post a bit more code. No one knows what this refers to.

Ralph
Re: get the connection end point.. [message #1183037 is a reply to message #1183008] Tue, 12 November 2013 15:45 Go to previous message
Luciano Kelvin is currently offline Luciano Kelvin
Messages: 2
Registered: August 2013
Junior Member
I have the method createContents in class MessageEditPart. And I want get targetPosition(always returns [100,100]).

/**
* @generated
*/
private void createContents() {
fFigureBIconixMessageNameFigure = new WrappingLabel();
fFigureBIconixMessageNameFigure.setText("message()");
setTargetDecoration(createTargetDecoration());
this.add(fFigureBIconixMessageNameFigure);
}
Previous Topic:ModelingAssistantProvider
Next Topic:ModelingAssistant Popup for ShapeCompartments
Goto Forum:
  


Current Time: Thu Sep 18 18:04:10 GMT 2014

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

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