Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeremie.tatibouet2015-05-04 08:54:34 +0000
committerArnaud Cuccuru2015-05-05 16:46:19 +0000
commit42736e1a70828172709c7244728057d7d7d6072c (patch)
tree993c6dbb3f3f803e2e2b9ff1a43b79e0ed311373 /extraplugins/alf/core
parent5651d1152261a21c2834d2a5b65e8d3213a4aac4 (diff)
downloadorg.eclipse.papyrus-42736e1a70828172709c7244728057d7d7d6072c.tar.gz
org.eclipse.papyrus-42736e1a70828172709c7244728057d7d7d6072c.tar.xz
org.eclipse.papyrus-42736e1a70828172709c7244728057d7d7d6072c.zip
Enable ALF editor when an activity is selected
Change-Id: I03337898021da86716da0b208adc595513209f86 Signed-off-by: jeremie.tatibouet <jeremie.tatibouet@cea.fr> Reviewed-on: https://git.eclipse.org/r/47152 Tested-by: Hudson CI Reviewed-by: Arnaud Cuccuru <arnaud.cuccuru@cea.fr> Tested-by: Arnaud Cuccuru <arnaud.cuccuru@cea.fr>
Diffstat (limited to 'extraplugins/alf/core')
-rw-r--r--extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/observation/listener/filter/FUMLScopeUtil.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/observation/listener/filter/FUMLScopeUtil.java b/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/observation/listener/filter/FUMLScopeUtil.java
index f2631bde785..6426cf6a2a8 100644
--- a/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/observation/listener/filter/FUMLScopeUtil.java
+++ b/extraplugins/alf/core/org.eclipse.papyrus.uml.alf.transaction/src/org/eclipse/papyrus/uml/alf/transaction/observation/listener/filter/FUMLScopeUtil.java
@@ -12,6 +12,7 @@
*****************************************************************************/
package org.eclipse.papyrus.uml.alf.transaction.observation.listener.filter;
+import org.eclipse.uml2.uml.Activity;
import org.eclipse.uml2.uml.Association;
import org.eclipse.uml2.uml.AssociationClass;
import org.eclipse.uml2.uml.Behavior;
@@ -161,6 +162,10 @@ public class FUMLScopeUtil {
return false;
}
+ public static boolean isActivity(Object notifier){
+ return notifier instanceof Activity;
+ }
+
public static boolean isLiteralUnlimitedNatural(Object notifier){
return notifier instanceof LiteralUnlimitedNatural;
}

Back to the top