Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » adding Rectangle to connection
adding Rectangle to connection [message #65532] Thu, 19 October 2006 06:29 Go to next message
Eclipse UserFriend
Originally posted by: heiko.plaas.fh-dortmund.de

Hi.

I generated an editor with two Labels at a polylineConnection. Now i want
to arrange these two labels in a Container, seperated by a line. This
Container should be centered at the connection.

thx
Heiko
Re: adding Rectangle to connection [message #66330 is a reply to message #65532] Fri, 20 October 2006 07:59 Go to previous messageGo to next message
Eclipse UserFriend
Generative tooling doesn't support this usecase, you'll need to tweak code
manually.
Please file an enhancement if you feel this usecase might be important for
GMF to support.


Artem

"Heiko" <heiko.plaas@fh-dortmund.de> wrote in message
news:71e736cd575c7bb6a732616b5961446b$1@www.eclipse.org...
> Hi.
>
> I generated an editor with two Labels at a polylineConnection. Now i want
> to arrange these two labels in a Container, seperated by a line. This
> Container should be centered at the connection.
>
> thx
> Heiko
>
Re: adding Rectangle to connection [message #68418 is a reply to message #65532] Tue, 24 October 2006 06:05 Go to previous message
Eclipse UserFriend
Originally posted by: natorion.gmx.at

I had a very similar problem. Use something like:

-----
ConnectionEndpointLocator relationshipLocator =
new ConnectionEndpointLocator(this,true);
relationshipLocator.setUDistance(30);
relationshipLocator.setVDistance(-20);
Label relationshipLabel = new Label("<<Next node / false>>");
this.add(relationshipLabel,relationshipLocator);
--------

in the constructor of the polyline figure (located in its associated
editpart).
Previous Topic:getting started mapping troubles
Next Topic:Outline in rcp lite?
Goto Forum:
  


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

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

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

Back to the top