1 33 34 package edu.rice.cs.drjava.model.debug; 35 36 import java.util.Vector ; 37 import edu.rice.cs.drjava.model.OpenDefinitionsDocument; 38 39 44 public class NoDebuggerAvailable implements Debugger { 45 46 47 public static final NoDebuggerAvailable ONLY = new NoDebuggerAvailable(); 48 49 50 private NoDebuggerAvailable() { } 51 52 55 public boolean isAvailable() { return false; } 56 57 58 public void startUp() throws DebugException { } 59 60 61 public void shutdown() { } 62 63 64 public boolean isReady() { return false; } 65 66 67 public void suspend(DebugThreadData d) { } 68 69 70 public void suspendAll() { } 71 72 73 public void setCurrentThread(DebugThreadData d) { } 74 75 76 public void resume() { } 77 78 81 public void resume(DebugThreadData data) { } 82 83 87 public void step(int flag) throws DebugException { } 88 89 90 public void clearCurrentStepRequest() { } 91 92 95 public void addWatch(String field) { } 96 97 100 public void removeWatch(String field) { } 101 102 105 public void removeWatch(int index) { } 106 107 108 public void removeAllWatches() { } 109 110 111 public void toggleBreakpoint(OpenDefinitionsDocument doc, int offset, int lineNum, boolean isEnabled) throws DebugException { } 112 113 114 public void setBreakpoint(Breakpoint breakpoint) { } 115 116 117 public void removeBreakpoint(Breakpoint breakpoint) { } 118 119 120 public Vector <DebugWatchData> getWatches() { return new Vector <DebugWatchData>(); } 121 122 123 public Vector <DebugThreadData> getCurrentThreadData() { return new Vector <DebugThreadData>(); } 124 125 126 public Vector <DebugStackData> getCurrentStackFrameData() { return new Vector <DebugStackData>(); } 127 128 129 public void addListener(DebugListener listener) { } 130 131 132 public void removeListener(DebugListener listener) { } 133 134 137 public boolean hasSuspendedThreads() { return false; } 138 139 140 public boolean hasRunningThread() { return false; } 141 142 143 public boolean isCurrentThreadSuspended() { return false; } 144 145 146 public void scrollToSource(DebugStackData data) { } 147 148 149 public void scrollToSource(Breakpoint bp) { } 150 151 152 public Breakpoint getBreakpoint(int line, String className) { return null; } 153 } 154 | Popular Tags |