Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCéline Janssens2014-09-24 12:20:15 +0000
committerCamille Letavernier2014-09-25 15:00:31 +0000
commitb7711519e701eff820eb3826adde16d805c2fd7b (patch)
treea9af2b74a9cd2f413c9c2b0c53d9f85d5e8d8345 /plugins/infra
parent7c051dc22dcdabed077071a694bf4646f02d0a67 (diff)
downloadorg.eclipse.papyrus-b7711519e701eff820eb3826adde16d805c2fd7b.tar.gz
org.eclipse.papyrus-b7711519e701eff820eb3826adde16d805c2fd7b.tar.xz
org.eclipse.papyrus-b7711519e701eff820eb3826adde16d805c2fd7b.zip
440230: [All Diagrams] Add Margins to the Labels
https://bugs.eclipse.org/bugs/show_bug.cgi?id=440230 - Communication Diagram : CustomWrappingLabel extends PapyrusWrappingLabel - Add required contructors in PapyrusWrappingLabel for CustomWrappingLabel - New formatter and cleanup has been applied on Communication Diag sources - TimeObservationNameEditPartCN's figure is now a PapyrusWrappingLabel - DurationObservationNameEditPartCN's figure is now a PapyrusWrappingLabel Change-Id: I46ab0be553f16746c2b358f6f8c0484003294b24 Signed-off-by: Céline Janssens <Celine.Janssens@all4tec.net>
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusWrappingLabel.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusWrappingLabel.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusWrappingLabel.java
index d583195b9b2..0a47beb6bf0 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusWrappingLabel.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/figure/node/PapyrusWrappingLabel.java
@@ -19,6 +19,7 @@ import org.eclipse.draw2d.MarginBorder;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
import org.eclipse.papyrus.infra.gmfdiag.common.figure.IPapyrusWrappingLabel;
+import org.eclipse.swt.graphics.Image;
/**
* This correct the bug where invisible label can be selected
@@ -28,6 +29,42 @@ import org.eclipse.papyrus.infra.gmfdiag.common.figure.IPapyrusWrappingLabel;
public class PapyrusWrappingLabel extends WrappingLabel implements IPapyrusWrappingLabel{
/**
+ * Constructor.
+ *
+ * @param image
+ */
+ public PapyrusWrappingLabel(Image image) {
+ super(image);
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param text
+ */
+ public PapyrusWrappingLabel(String text) {
+ super(text);
+ }
+
+ /**
+ * Constructor.
+ *
+ */
+ public PapyrusWrappingLabel() {
+ super();
+ }
+
+ /**
+ * Constructor.
+ *
+ * @param text
+ * @param image
+ */
+ public PapyrusWrappingLabel(String text, Image image) {
+ super(text, image);
+ }
+
+ /**
* Bug 354622 - [ActivityDiagram] Object Flows selection prevent selecting other close elements.
* On this bug bug come from that invisible label return true containsPoint(int, int) even if there invisible
*
@@ -66,6 +103,8 @@ public class PapyrusWrappingLabel extends WrappingLabel implements IPapyrusWrapp
}
+
+
}

Back to the top