Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 07a067dfeaa25bb128d5bbab65ad4acc810a1593 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
package org.eclipse.debug.examples.internal.memory.core;

import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.ILaunch;
import org.eclipse.debug.core.model.DebugElement;
import org.eclipse.debug.core.model.IDebugTarget;
import org.eclipse.debug.core.model.IValue;
import org.eclipse.debug.core.model.IVariable;

public class SampleValue extends DebugElement implements IValue {

	private SampleVariable fVariable;

	public SampleValue(SampleVariable variable) {
		super(variable.getDebugTarget());
		fVariable = variable;
	}

	@Override
	public String getReferenceTypeName() throws DebugException {
		return ""; //$NON-NLS-1$
	}

	@Override
	public String getValueString() throws DebugException {
		return String.valueOf(System.currentTimeMillis());
	}

	@Override
	public boolean isAllocated() throws DebugException {
		return false;
	}

	@Override
	public IVariable[] getVariables() throws DebugException {
		return new IVariable[0];
	}

	@Override
	public boolean hasVariables() throws DebugException {
		return false;
	}

	@Override
	public String getModelIdentifier() {
		return fVariable.getModelIdentifier();
	}

	@Override
	public IDebugTarget getDebugTarget() {
		return fVariable.getDebugTarget();
	}

	@Override
	public ILaunch getLaunch() {
		return fVariable.getLaunch();
	}

}

Back to the top