Skip to main content
summaryrefslogtreecommitdiffstats
blob: c43fd08f9384b4a3b7f38057834a41ee62401b51 (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.Semantics.Classes.Kernel.Object_;
import org.eclipse.swt.graphics.Image;
import org.eclipse.uml2.uml.UMLPackage;

public class MokaVariable_from_ContextObject extends MokaVariable_for_fUML {

	protected Object_ contextObject ;
	
	public MokaVariable_from_ContextObject(Object_ contextObject) {
		super();
		this.name = "context" ;
		this.contextObject = contextObject ;
	}

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

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

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

}

Back to the top