Skip to main content
summaryrefslogtreecommitdiffstats
blob: 4d8aaebf58572407226c36d3ba87dd0dbaf62dce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package org.eclipse.papyrus.moka.fuml.presentation;

import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IValue;
import org.eclipse.papyrus.moka.fuml.FUMLExecutionEngine;
import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
import org.eclipse.swt.graphics.Image;
import org.eclipse.uml2.uml.UMLPackage;

public class MokaVariable_from_Value extends MokaVariable_for_fUML {

	protected Value value ;
	
	public MokaVariable_from_Value(Value value) {
		super();
		this.value = value ;
	}

	//////////////////////////////////
	// Presentation
	//////////////////////////////////

	public Image getImage() {
		// not used for variables
		return FUMLExecutionEngine.getImage(UMLPackage.eINSTANCE.getInstanceSpecification()) ;
	}

	//////////////////////////////////
	// Debug
	//////////////////////////////////
	@Override
	public IValue getValue() throws DebugException {
		return new MokaValue_from_Value(value) ;
	}

}

Back to the top