|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.routineeditor.launching.SPDebugTarget_Run
public class SPDebugTarget_Run
This a very simple implementation of "run" mode. The debug target don't have child thread, and simply trace the connection's connected status. Currently treat "terminate" and "disconnect" status as almost same. In the future may change. XXX: today this class is not extending SPDebugElement, because SPDebugElement depends too much on SPDebugTarget. In the future we may want to make SPDebugTarget and SPDebugTarget_Run to extending from some common class. But for now, as SPDebugTarget_Run is so simple, no need for that.
Constructor Summary | |
---|---|
SPDebugTarget_Run(org.eclipse.debug.core.ILaunch launch,
org.eclipse.debug.core.model.IProcess process,
java.lang.String name,
java.sql.Connection conn)
|
Method Summary | |
---|---|
void |
breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
void |
breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
void |
breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint,
org.eclipse.core.resources.IMarkerDelta delta)
|
boolean |
canDisconnect()
|
boolean |
canResume()
|
boolean |
canSuspend()
|
boolean |
canTerminate()
|
void |
connectionAboutToBeClosed()
Default implementation does nothing |
void |
connectionClosed()
Notifies the listener that the connection being tracked is closed. |
void |
disconnect()
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
org.eclipse.debug.core.model.IDebugTarget |
getDebugTarget()
|
org.eclipse.debug.core.ILaunch |
getLaunch()
|
org.eclipse.debug.core.model.IMemoryBlock |
getMemoryBlock(long startAddress,
long length)
|
java.lang.String |
getModelIdentifier()
|
java.lang.String |
getName()
|
org.eclipse.debug.core.model.IProcess |
getProcess()
|
org.eclipse.debug.core.model.IThread[] |
getThreads()
|
boolean |
hasThreads()
|
boolean |
isDisconnected()
|
boolean |
isSuspended()
|
boolean |
isTerminated()
|
void |
notSupported(java.lang.String message)
Throws a new debug exception with a status code of NOT_SUPPORTED . |
void |
resume()
|
boolean |
supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
|
boolean |
supportsStorageRetrieval()
|
void |
suspend()
|
void |
terminate()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SPDebugTarget_Run(org.eclipse.debug.core.ILaunch launch, org.eclipse.debug.core.model.IProcess process, java.lang.String name, java.sql.Connection conn)
Method Detail |
---|
public boolean canTerminate()
canTerminate
in interface org.eclipse.debug.core.model.ITerminate
public boolean isTerminated()
isTerminated
in interface org.eclipse.debug.core.model.ITerminate
public void terminate() throws org.eclipse.debug.core.DebugException
terminate
in interface org.eclipse.debug.core.model.ITerminate
org.eclipse.debug.core.DebugException
public boolean canDisconnect()
canDisconnect
in interface org.eclipse.debug.core.model.IDisconnect
public void disconnect() throws org.eclipse.debug.core.DebugException
disconnect
in interface org.eclipse.debug.core.model.IDisconnect
org.eclipse.debug.core.DebugException
public boolean isDisconnected()
isDisconnected
in interface org.eclipse.debug.core.model.IDisconnect
public void connectionClosed()
IConnectionTracker
connectionClosed
in interface IConnectionTracker
public void notSupported(java.lang.String message) throws org.eclipse.debug.core.DebugException
NOT_SUPPORTED
.
message
- Failure message
org.eclipse.debug.core.DebugException
- The exception with a status code of NOT_SUPPORTED
.public org.eclipse.debug.core.model.IProcess getProcess()
getProcess
in interface org.eclipse.debug.core.model.IDebugTarget
public java.lang.String getName() throws org.eclipse.debug.core.DebugException
getName
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
public java.lang.String getModelIdentifier()
getModelIdentifier
in interface org.eclipse.debug.core.model.IDebugElement
public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
getDebugTarget
in interface org.eclipse.debug.core.model.IDebugElement
public org.eclipse.debug.core.ILaunch getLaunch()
getLaunch
in interface org.eclipse.debug.core.model.IDebugElement
public org.eclipse.debug.core.model.IThread[] getThreads() throws org.eclipse.debug.core.DebugException
getThreads
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
public boolean hasThreads() throws org.eclipse.debug.core.DebugException
hasThreads
in interface org.eclipse.debug.core.model.IDebugTarget
org.eclipse.debug.core.DebugException
public boolean supportsBreakpoint(org.eclipse.debug.core.model.IBreakpoint breakpoint)
supportsBreakpoint
in interface org.eclipse.debug.core.model.IDebugTarget
public boolean canResume()
canResume
in interface org.eclipse.debug.core.model.ISuspendResume
public boolean canSuspend()
canSuspend
in interface org.eclipse.debug.core.model.ISuspendResume
public boolean isSuspended()
isSuspended
in interface org.eclipse.debug.core.model.ISuspendResume
public void resume() throws org.eclipse.debug.core.DebugException
resume
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
public void suspend() throws org.eclipse.debug.core.DebugException
suspend
in interface org.eclipse.debug.core.model.ISuspendResume
org.eclipse.debug.core.DebugException
public void breakpointAdded(org.eclipse.debug.core.model.IBreakpoint breakpoint)
breakpointAdded
in interface org.eclipse.debug.core.IBreakpointListener
public void breakpointRemoved(org.eclipse.debug.core.model.IBreakpoint breakpoint, org.eclipse.core.resources.IMarkerDelta delta)
breakpointRemoved
in interface org.eclipse.debug.core.IBreakpointListener
public void breakpointChanged(org.eclipse.debug.core.model.IBreakpoint breakpoint, org.eclipse.core.resources.IMarkerDelta delta)
breakpointChanged
in interface org.eclipse.debug.core.IBreakpointListener
public boolean supportsStorageRetrieval()
supportsStorageRetrieval
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
public org.eclipse.debug.core.model.IMemoryBlock getMemoryBlock(long startAddress, long length) throws org.eclipse.debug.core.DebugException
getMemoryBlock
in interface org.eclipse.debug.core.model.IMemoryBlockRetrieval
org.eclipse.debug.core.DebugException
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public void connectionAboutToBeClosed()
connectionAboutToBeClosed
in interface IConnectionTracker
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |