Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Le Guennec2014-03-13 14:52:06 +0000
committerVincent Lorenzo2014-03-13 14:52:06 +0000
commit553f8efafc6a2d4f02e08186cfa7812105ad59bf (patch)
tree5601fcdef6d89fbe94928311436bae199a15212d /plugins/infra
parent2b0d2af622c6482b4a6109d12463c28f1374588a (diff)
downloadorg.eclipse.papyrus-553f8efafc6a2d4f02e08186cfa7812105ad59bf.tar.gz
org.eclipse.papyrus-553f8efafc6a2d4f02e08186cfa7812105ad59bf.tar.xz
org.eclipse.papyrus-553f8efafc6a2d4f02e08186cfa7812105ad59bf.zip
429962: [All diagrams] Show/Hide related links only works for Connectors.
Diffstat (limited to 'plugins/infra')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/AbstractShowHideRelatedLinkEditPolicy.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/AbstractShowHideRelatedLinkEditPolicy.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/AbstractShowHideRelatedLinkEditPolicy.java
index 9cc52bca377..201a30528c6 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/AbstractShowHideRelatedLinkEditPolicy.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/AbstractShowHideRelatedLinkEditPolicy.java
@@ -67,6 +67,7 @@ import org.eclipse.papyrus.infra.gmfdiag.common.utils.DiagramEditPartsUtil;
import org.eclipse.papyrus.infra.gmfdiag.common.utils.Domain2Notation;
import org.eclipse.papyrus.infra.gmfdiag.common.utils.ServiceUtilsForEditPart;
import org.eclipse.uml2.uml.Connector;
+import org.eclipse.uml2.uml.Element;
/**
@@ -527,7 +528,7 @@ public abstract class AbstractShowHideRelatedLinkEditPolicy extends AbstractEdit
Set<View> targetViewList = domain2NotationMap.get(descriptor.getDestination());
for (View targetView : targetViewList) {
- if (canDisplayExistingLinkBetweenViews((Connector) linkToShow, sourceView, targetView)){
+ if (canDisplayExistingLinkBetweenViews((Element) linkToShow, sourceView, targetView)){
EditPart sourceEditPart = getEditPartFromView(sourceView);
EditPart targetEditPart = getEditPartFromView(targetView);
@@ -562,12 +563,12 @@ public abstract class AbstractShowHideRelatedLinkEditPolicy extends AbstractEdit
/**
* Can display existing link between views.
*
- * @param connector the connector
+ * @param element the element represented by the link
* @param sourceView the source view
* @param targetView the target view
* @return true, if successful
*/
- public boolean canDisplayExistingLinkBetweenViews(final Connector connector, final View sourceView, final View targetView) {
+ public boolean canDisplayExistingLinkBetweenViews(final Element element, final View sourceView, final View targetView) {
return true;
}

Back to the top