Author: koen.aers(a)jboss.com
Date: 2010-07-07 09:53:18 -0400 (Wed, 07 Jul 2010)
New Revision: 23276
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
Log:
GPD-379
Modified:
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java
===================================================================
---
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2010-07-07
13:39:36 UTC (rev 23275)
+++
trunk/flow/plugins/org.jboss.tools.flow.common/src/org/jboss/tools/flow/common/editpart/LabelEditPart.java 2010-07-07
13:53:18 UTC (rev 23276)
@@ -41,6 +41,7 @@
protected void refreshVisuals() {
String text = getLabelWrapper().getText();
+ text = text == null ? "" : text;
Polyline polyline = (Polyline)((ConnectionEditPart)getParent()).getConnectionFigure();
Point location = ((LabelWrapper)getModel()).getLocation();
if (location == null) {
@@ -48,7 +49,7 @@
((LabelWrapper)getModel()).setLocation(location);
}
Label label = (Label)getFigure();
- label.setText(text == null ? "" : text);
+ label.setText(text);
LabelConstraint constraint = new LabelConstraint(text, location, polyline);
((GraphicalEditPart)getParent()).setLayoutConstraint(this, getFigure(), constraint);
}
Show replies by date