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/presentation/MokaStackFrame_from_UMLModelElement.java')
-rw-r--r--sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_UMLModelElement.java80
1 files changed, 0 insertions, 80 deletions
diff --git a/sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_UMLModelElement.java b/sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_UMLModelElement.java
deleted file mode 100644
index ccb08a734a8..00000000000
--- a/sandbox/Moka/org.eclipse.papyrus.moka.fuml/src/org/eclipse/papyrus/moka/fuml/presentation/MokaStackFrame_from_UMLModelElement.java
+++ /dev/null
@@ -1,80 +0,0 @@
-package org.eclipse.papyrus.moka.fuml.presentation;
-
-import org.eclipse.debug.core.DebugException;
-import org.eclipse.debug.core.model.IVariable;
-import org.eclipse.papyrus.moka.debug.MokaStackFrame;
-import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngine;
-import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Object_;
-import org.eclipse.papyrus.moka.fuml.Semantics.Loci.LociL1.Locus;
-import org.eclipse.papyrus.moka.ui.presentation.IPresentation;
-import org.eclipse.swt.graphics.Image;
-import org.eclipse.uml2.uml.Element;
-
-public abstract class MokaStackFrame_from_UMLModelElement extends MokaStackFrame implements IPresentation {
-
- public MokaStackFrame_from_UMLModelElement(Element modelElement) {
- super(Locus.getDebugTarget());
- this.modelElement = modelElement ;
- }
-
- ///////////////////////////////
- // Presentation
- ///////////////////////////////
-
- /* (non-Javadoc)
- * @see org.eclipse.papyrus.moka.ui.presentation.IPresentation#getLabel()
- */
- abstract public String getLabel() ;
-
- /* (non-Javadoc)
- * @see org.eclipse.papyrus.moka.ui.presentation.IPresentation#getDetails()
- */
- public String getDetails() {
- // Not used
- return "";
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.papyrus.moka.ui.presentation.IPresentation#getImage()
- */
- public Image getImage() {
- return FUMLExecutionEngine.getImage(modelElement) ;
- }
-
- ///////////////////////////////
- // Debug
- ///////////////////////////////
-
- /* (non-Javadoc)
- * @see org.eclipse.papyrus.moka.debug.MokaStackFrame#hasVariables()
- */
- @Override
- public boolean hasVariables() throws DebugException {
- return true ;
- }
-
- /* (non-Javadoc)
- * @see org.eclipse.papyrus.moka.debug.MokaStackFrame#getVariables()
- */
- @Override
- public IVariable[] getVariables() throws DebugException {
- Object_ contextObject = this.getContextObject() ;
- IVariable[] variables ;
- if (contextObject == null) {
- variables = new IVariable[]{};
- }
- else {
- MokaVariable_from_ContextObject var = new MokaVariable_from_ContextObject(contextObject) ;
- variables = new IVariable[]{var} ;
- }
- return variables ;
- }
-
- /**
- * Returns the context fUML Object_ for this stack frame
- *
- * @return the context fUML Object_ for this stack frame
- */
- protected abstract Object_ getContextObject() ;
-
-}

Back to the top