Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/FumlThread.java')
-rw-r--r--sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/FumlThread.java45
1 files changed, 0 insertions, 45 deletions
diff --git a/sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/FumlThread.java b/sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/FumlThread.java
deleted file mode 100644
index 59a3010c294..00000000000
--- a/sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/debug/FumlThread.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package org.eclipse.papyrus.moka.fuml.debug;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.papyrus.moka.debug.MokaDebugTarget;
-import org.eclipse.papyrus.moka.debug.MokaStackFrame;
-import org.eclipse.papyrus.moka.debug.MokaThread;
-import org.eclipse.uml2.uml.Activity;
-import org.eclipse.uml2.uml.CallBehaviorAction;
-import org.eclipse.uml2.uml.CallOperationAction;
-
-public class FumlThread extends MokaThread {
-
- public FumlThread(MokaDebugTarget debugTarget) {
- super(debugTarget);
- }
-
- @Override
- public boolean canStepInto() {
- boolean canStepInto = super.canStepInto() ;
- if (canStepInto) {
- try {
- MokaStackFrame topStackFrame = (MokaStackFrame)this.getTopStackFrame() ;
- EObject modelElement = topStackFrame.getModelElement() ;
- if (modelElement instanceof CallOperationAction) {
- CallOperationAction action = (CallOperationAction)modelElement ;
- canStepInto = action.getOperation().getMethods().get(0) instanceof Activity ;
- }
- else if (modelElement instanceof CallBehaviorAction) {
- CallBehaviorAction action = (CallBehaviorAction)modelElement ;
- canStepInto = action.getBehavior() instanceof Activity ;
- }
- else {
- canStepInto = false ;
- }
- } catch (DebugException e) {
- canStepInto = false ;
- } catch (NullPointerException e) {
- canStepInto = false ;
- }
- }
- return canStepInto ;
- }
-
-}

Back to the top