Skip to main content


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 KelvinFriend
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 GerbigFriend
Messages: 702
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 KelvinFriend
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: Wed May 08 21:57:48 GMT 2024

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

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

Back to the top