Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashatilov2015-12-25 14:20:52 +0000
committervincent lorenzo2017-09-04 08:42:07 +0000
commit1d9f6cd454865f0b73aa285e1dd5368096dbeb88 (patch)
tree64d35e1dab761aeca632f4bb3b3f33d5029930e7 /plugins/infra
parent96b985236f1f378c4a3d3e35dd95563997a2587a (diff)
downloadorg.eclipse.papyrus-1d9f6cd454865f0b73aa285e1dd5368096dbeb88.tar.gz
org.eclipse.papyrus-1d9f6cd454865f0b73aa285e1dd5368096dbeb88.tar.xz
org.eclipse.papyrus-1d9f6cd454865f0b73aa285e1dd5368096dbeb88.zip
Bug 484895 - [All diagrams] Keyword label is lost when you move one
of the link ends Change-Id: Idbcfaf0ea27e0f048109c90c118a48c3a0387eff Signed-off-by: ashatilov <shatilov@montages.com>
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/AbstractRefreshConnectionElementsRunnable.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/AbstractRefreshConnectionElementsRunnable.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/AbstractRefreshConnectionElementsRunnable.java
index bebe3a1fc18..d8953fcdb79 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/AbstractRefreshConnectionElementsRunnable.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/commands/AbstractRefreshConnectionElementsRunnable.java
@@ -14,6 +14,8 @@
*****************************************************************************/
package org.eclipse.papyrus.infra.gmfdiag.common.commands;
+import java.util.List;
+
import org.eclipse.core.runtime.IStatus;
import org.eclipse.draw2d.IFigure;
import org.eclipse.emf.transaction.RunnableWithResult;
@@ -83,7 +85,7 @@ public abstract class AbstractRefreshConnectionElementsRunnable<T> implements Ru
* @see org.eclipse.emf.transaction.RunnableWithResult#getStatus()
*
* @return
- * the status of the runnable
+ * the status of the runnable
*/
@Override
public final IStatus getStatus() {
@@ -93,7 +95,7 @@ public abstract class AbstractRefreshConnectionElementsRunnable<T> implements Ru
/**
*
* @return
- * the container edit part
+ * the container edit part
*/
protected final IGraphicalEditPart getContainerEditPart() {
return this.containerEP;
@@ -114,6 +116,11 @@ public abstract class AbstractRefreshConnectionElementsRunnable<T> implements Ru
if (targetEP != null) {
targetEP.refresh();
}
+ @SuppressWarnings("unchecked")
+ List<? extends EditPart> childrens = connectionToRefresh.getChildren();
+ for (EditPart nextChild : childrens) {
+ nextChild.refresh();
+ }
// to force the call to the router, to update the figure
connectionToRefresh.getFigure().validate();
}
@@ -121,7 +128,7 @@ public abstract class AbstractRefreshConnectionElementsRunnable<T> implements Ru
/**
*
* @return
- * the figure for the container edit part
+ * the figure for the container edit part
*/
protected final IFigure getContainerFigure() {
return this.containerEP.getFigure();

Back to the top