org.eclipse.ocl.examples.debug.vm.core
Class VMDebugTarget
java.lang.Object
org.eclipse.core.runtime.PlatformObject
org.eclipse.debug.core.model.DebugElement
org.eclipse.ocl.examples.debug.vm.core.VMDebugElement
org.eclipse.ocl.examples.debug.vm.core.VMDebugTarget
- All Implemented Interfaces:
- org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.IBreakpointListener, org.eclipse.debug.core.IBreakpointManagerListener, org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IDebugTarget, org.eclipse.debug.core.model.IDisconnect, org.eclipse.debug.core.model.IMemoryBlockRetrieval, org.eclipse.debug.core.model.ISuspendResume, org.eclipse.debug.core.model.ITerminate, IVMDebugTarget
- Direct Known Subclasses:
- OCLDebugTarget
public abstract class VMDebugTarget
- extends VMDebugElement
- implements IVMDebugTarget, org.eclipse.debug.core.IDebugEventSetListener, org.eclipse.debug.core.IBreakpointManagerListener
Methods inherited from class org.eclipse.debug.core.model.DebugElement |
fireChangeEvent, fireCreationEvent, fireEvent, fireResumeEvent, fireSuspendEvent, fireTerminateEvent, getAdapter, notSupported, requestFailed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.debug.core.model.IDebugElement |
getModelIdentifier |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
VMDebugTarget
public VMDebugTarget(org.eclipse.debug.core.model.IProcess process,
IVMVirtualMachineShell vm)
computeBreakpointURI
protected org.eclipse.emf.common.util.URI computeBreakpointURI(org.eclipse.emf.common.util.URI sourceURI)
getInstalledBreakpoints
public java.util.Collection<? extends org.eclipse.debug.core.model.IBreakpoint> getInstalledBreakpoints()
sendRequest
public VMResponse sendRequest(@NonNull
VMRequest request)
throws org.eclipse.debug.core.DebugException
- Specified by:
sendRequest
in interface IVMDebugTarget
- Throws:
org.eclipse.debug.core.DebugException
isSuspended
public boolean isSuspended()
- Specified by:
isSuspended
in interface org.eclipse.debug.core.model.ISuspendResume
getDebugTarget
public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
- Specified by:
getDebugTarget
in interface org.eclipse.debug.core.model.IDebugElement
- Overrides:
getDebugTarget
in class org.eclipse.debug.core.model.DebugElement
getLaunch
public org.eclipse.debug.core.ILaunch getLaunch()
- Specified by:
getLaunch
in interface org.eclipse.debug.core.model.IDebugElement
- Overrides:
getLaunch
in class org.eclipse.debug.core.model.DebugElement
getVM
public IVMVirtualMachineShell getVM()
getProcess
public org.eclipse.debug.core.model.IProcess getProcess()
- Specified by:
getProcess
in interface org.eclipse.debug.core.model.IDebugTarget
hasThreads
public boolean hasThreads()
throws org.eclipse.debug.core.DebugException
- Specified by:
hasThreads
in interface org.eclipse.debug.core.model.IDebugTarget
- Throws:
org.eclipse.debug.core.DebugException
getThreads
public org.eclipse.debug.core.model.IThread[] getThreads()
throws org.eclipse.debug.core.DebugException
- Specified by:
getThreads
in interface org.eclipse.debug.core.model.IDebugTarget
- Throws:
org.eclipse.debug.core.DebugException
getName
public java.lang.String getName()
throws org.eclipse.debug.core.DebugException
- Specified by:
getName
in interface org.eclipse.debug.core.model.IDebugTarget
- Throws:
org.eclipse.debug.core.DebugException
supportsBreakpoint
public boolean supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
- Specified by:
supportsBreakpoint
in interface org.eclipse.debug.core.model.IDebugTarget
canTerminate
public boolean canTerminate()
- Specified by:
canTerminate
in interface org.eclipse.debug.core.model.ITerminate
isTerminated
public boolean isTerminated()
- Specified by:
isTerminated
in interface org.eclipse.debug.core.model.ITerminate
terminate
public void terminate()
throws org.eclipse.debug.core.DebugException
- Specified by:
terminate
in interface org.eclipse.debug.core.model.ITerminate
- Throws:
org.eclipse.debug.core.DebugException
started
protected void started(java.lang.String mainModuleName)
setMainModuleName
protected void setMainModuleName(java.lang.String mainModuleName)
getMainModuleName
public java.lang.String getMainModuleName()
terminated
protected void terminated()
canResume
public boolean canResume()
- Specified by:
canResume
in interface org.eclipse.debug.core.model.ISuspendResume
canSuspend
public boolean canSuspend()
- Specified by:
canSuspend
in interface org.eclipse.debug.core.model.ISuspendResume
resume
public void resume()
throws org.eclipse.debug.core.DebugException
- Specified by:
resume
in interface org.eclipse.debug.core.model.ISuspendResume
- Throws:
org.eclipse.debug.core.DebugException
suspend
public void suspend()
throws org.eclipse.debug.core.DebugException
- Specified by:
suspend
in interface org.eclipse.debug.core.model.ISuspendResume
- Throws:
org.eclipse.debug.core.DebugException
breakpointAdded
public void breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
- Specified by:
breakpointAdded
in interface org.eclipse.debug.core.IBreakpointListener
breakpointChanged
public void breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
- Specified by:
breakpointChanged
in interface org.eclipse.debug.core.IBreakpointListener
breakpointRemoved
public void breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
- Specified by:
breakpointRemoved
in interface org.eclipse.debug.core.IBreakpointListener
canDisconnect
public boolean canDisconnect()
- Specified by:
canDisconnect
in interface org.eclipse.debug.core.model.IDisconnect
disconnect
public void disconnect()
throws org.eclipse.debug.core.DebugException
- Specified by:
disconnect
in interface org.eclipse.debug.core.model.IDisconnect
- Throws:
org.eclipse.debug.core.DebugException
isDisconnected
public boolean isDisconnected()
- Specified by:
isDisconnected
in interface org.eclipse.debug.core.model.IDisconnect
supportsStorageRetrieval
public boolean supportsStorageRetrieval()
- Specified by:
supportsStorageRetrieval
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
getMemoryBlock
public org.eclipse.debug.core.model.IMemoryBlock getMemoryBlock(long startAddress,
long length)
throws org.eclipse.debug.core.DebugException
- Specified by:
getMemoryBlock
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
- Throws:
org.eclipse.debug.core.DebugException
handleDebugEvents
public void handleDebugEvents(org.eclipse.debug.core.DebugEvent[] events)
- Specified by:
handleDebugEvents
in interface org.eclipse.debug.core.IDebugEventSetListener
breakpointManagerEnablementChanged
public void breakpointManagerEnablementChanged(boolean enabled)
- Specified by:
breakpointManagerEnablementChanged
in interface org.eclipse.debug.core.IBreakpointManagerListener
addVMEventListener
public void addVMEventListener(@NonNull
VMEventListener listener)
- Specified by:
addVMEventListener
in interface IVMDebugTarget
removeVMEventListener
public boolean removeVMEventListener(@NonNull
VMEventListener listener)
- Specified by:
removeVMEventListener
in interface IVMDebugTarget
evaluate
public org.eclipse.debug.core.model.IValue evaluate(@NonNull
java.lang.String expressionText,
long frameID)
throws org.eclipse.core.runtime.CoreException
- Throws:
org.eclipse.core.runtime.CoreException