Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Connector Labels (Polyline Connection)(PolylineConnection , Connector Label)
Connector Labels (Polyline Connection) [message #1059231] Fri, 17 May 2013 08:18 Go to next message
Dan Tololoi is currently offline Dan Tololoi
Messages: 22
Registered: September 2012
Location: Iasi, Romania
Junior Member

Hi,

In one diagram I have a figure element that is the representation of a Polyline and for it I attached a label with a text. The Label is the one that you can show/hide in the diagram view by Show/Hide Connector Labels. When the text that goes to the Label becomes long, I need to make it multiple line or have it multiple line from the beginning. I tried to change the type from a Label to a Custom Figure and set the CustomAttribute textWrap to true , but not possible to see this happening the moment the Label is displayed in the Diagram Editor.
Any idea is welcome.
Re: Connector Labels (Polyline Connection) [message #1060445 is a reply to message #1059231] Fri, 24 May 2013 12:56 Go to previous message
Thomas Beyer is currently offline Thomas Beyer
Messages: 55
Registered: February 2013
Member
Hi Dan,

your generated EditPart has most likely an underlying "WrappingLabel" as its figure, which has the
setTextWrap(...)

implemented by default.
Make sure, when you perform the actual editing on the label to use CTRL+Enter to insert a linebreak, as only enter will commit the currently edited text.

Regards
Thomas
Previous Topic:GMF creating xtext file as model
Next Topic:GMF delete node problem
Goto Forum:
  


Current Time: Tue May 28 13:27:50 EDT 2013

Powered by FUDForum. Page generated in 0.03344 seconds