summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-03-14 10:50:10 (EDT)
committerLaurent Wouters2014-03-14 10:52:48 (EDT)
commit9f626161fd840f0cdbbd96a0bbba8454f140d8a3 (patch)
treef509d716b9c914e775496712bc8a38f9a601599e
parent30ce30be670b586bac03cc70556b9a5076988096 (diff)
downloadorg.eclipse.papyrus-9f626161fd840f0cdbbd96a0bbba8454f140d8a3.zip
org.eclipse.papyrus-9f626161fd840f0cdbbd96a0bbba8454f140d8a3.tar.gz
org.eclipse.papyrus-9f626161fd840f0cdbbd96a0bbba8454f140d8a3.tar.bz2
386118: [EMF Facet] Papyrus should progressively support EMF Facet 0.2
Fixing wrong cast in NotationHelper Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/NotationHelper.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/NotationHelper.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/NotationHelper.java
index 7c43a34..5d9b144 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/NotationHelper.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/helper/NotationHelper.java
@@ -33,7 +33,8 @@ public class NotationHelper {
if(source instanceof View) {
return (View)source;
}
- return (View) EMFHelper.getEObject(source);
+ EObject obj = EMFHelper.getEObject(source);
+ return (obj instanceof View) ? (View) obj : null;
}
/**