Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-05-24 13:36:10 -0400
committerGerrit Code Review @ Eclipse.org2016-05-27 08:20:40 -0400
commit5a1636c8922c25d47a56c5a112668d129346352f (patch)
tree33b3b3d8e5d9b452b7616f74c9a2cd2b78dbec73 /plugins/sysml
parentc3dcb4914637e5ca63d83d16ef9a9342796b0552 (diff)
downloadorg.eclipse.papyrus-5a1636c8922c25d47a56c5a112668d129346352f.tar.gz
org.eclipse.papyrus-5a1636c8922c25d47a56c5a112668d129346352f.tar.xz
org.eclipse.papyrus-5a1636c8922c25d47a56c5a112668d129346352f.zip
bug 493876: [LinkLF] Some links are not aligned anymore after migration from Luna to Mars - Minimal fix for the bug
Change-Id: I97c9e60c7a6e9611c04f65076f393261c63ee903 Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
Diffstat (limited to 'plugins/sysml')
-rw-r--r--plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AbstractElementBorderEditPart.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AbstractElementBorderEditPart.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AbstractElementBorderEditPart.java
index ab84fa721bd..a1a94dd2091 100644
--- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AbstractElementBorderEditPart.java
+++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.common/src-common-uml/org/eclipse/papyrus/uml/diagram/common/edit/part/AbstractElementBorderEditPart.java
@@ -9,7 +9,7 @@
* Contributors:
*
* CEA LIST - Initial API and implementation
- *
+ * Vincent Lorenzo (CEA-LIST) - vincent.lorenzo@cea.fr (bug 493876)
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.common.edit.part;
@@ -33,6 +33,7 @@ import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.gmf.runtime.notation.Edge;
import org.eclipse.gmf.runtime.notation.NotationPackage;
import org.eclipse.gmf.runtime.notation.View;
+import org.eclipse.gmf.tooling.runtime.linklf.LinkLFNodeFigure;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.preference.PreferenceConverter;
import org.eclipse.papyrus.infra.gmfdiag.common.editpolicies.DefaultGraphicalNodeEditPolicy;
@@ -149,7 +150,7 @@ public abstract class AbstractElementBorderEditPart extends AbstractBorderEditPa
IPreferenceStore store = Activator.getInstance().getPreferenceStore();
String preferenceConstantWitdh = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferencesConstantsHelper.WIDTH);
String preferenceConstantHeight = PreferenceInitializerForElementHelper.getpreferenceKey(getNotationView(), prefElementId, PreferencesConstantsHelper.HEIGHT);
- DefaultSizeNodeFigure result = new DefaultSizeNodeFigure(store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
+ DefaultSizeNodeFigure result = new LinkLFNodeFigure(this,store.getInt(preferenceConstantWitdh), store.getInt(preferenceConstantHeight));
// FIXME: workaround for #154536
result.getBounds().setSize(result.getPreferredSize());

Back to the top