1 package net.mograsim.plugin.launch;
3 import org.eclipse.core.runtime.PlatformObject;
4 import org.eclipse.debug.core.DebugException;
5 import org.eclipse.debug.core.ILaunch;
6 import org.eclipse.debug.core.model.IDebugTarget;
7 import org.eclipse.debug.core.model.IValue;
8 import org.eclipse.debug.core.model.IVariable;
10 import net.mograsim.machine.Machine;
11 import net.mograsim.plugin.MograsimActivator;
13 public class MachineValue extends PlatformObject implements IValue
15 private final MachineRegister register;
17 public MachineValue(MachineRegister register)
19 this.register = register;
23 public String getModelIdentifier()
25 return MograsimActivator.PLUGIN_ID;
28 public Machine getMachine()
30 return register.getMachine();
34 public IDebugTarget getDebugTarget()
36 return register.getDebugTarget();
40 public ILaunch getLaunch()
42 return register.getLaunch();
46 public String getReferenceTypeName() throws DebugException
48 return register.getReferenceTypeName();
52 public String getValueString() throws DebugException
54 return register.getValueString();
58 public boolean isAllocated() throws DebugException
64 public IVariable[] getVariables() throws DebugException
66 return new IVariable[0];
70 public boolean hasVariables() throws DebugException