@@ -497,11 +497,11 @@ protected boolean hasBreakpoint(LineID line) {
497
497
// /** Print a list of currently set breakpoints. */
498
498
// public synchronized void listBreakpoints() {
499
499
// if (breakpoints.isEmpty()) {
500
- // System.out.addEmptyLine ("no breakpoints");
500
+ // System.out.println ("no breakpoints");
501
501
// } else {
502
- // System.out.addEmptyLine ("line breakpoints:");
502
+ // System.out.println ("line breakpoints:");
503
503
// for (LineBreakpoint bp : breakpoints) {
504
- // System.out.addEmptyLine (bp);
504
+ // System.out.println (bp);
505
505
// }
506
506
// }
507
507
// }
@@ -692,7 +692,7 @@ protected void stepOutIntoViewOrContinue() {
692
692
List <StackFrame > frames = currentThread .frames ();
693
693
if (frames .size () > 1 ) {
694
694
if (locationIsVisible (frames .get (1 ).location ())) {
695
- //System.out.addEmptyLine ("stepping out to: " + locationToString(frames.get(1).location()));
695
+ //System.out.println ("stepping out to: " + locationToString(frames.get(1).location()));
696
696
stepOut ();
697
697
return ;
698
698
}
@@ -740,7 +740,7 @@ public synchronized boolean isBusy() {
740
740
741
741
/**
742
742
* Print call stack trace of a thread. Only works on suspended threads.
743
- * @param t suspended thread to addCode stack trace of
743
+ * @param t suspended thread to print stack trace of
744
744
*/
745
745
protected void printStackTrace (ThreadReference t ) {
746
746
if (!t .isSuspended ()) {
@@ -794,7 +794,7 @@ public synchronized void printThreads() {
794
794
/**
795
795
* Print info about a thread. Includes name, status, isSuspended,
796
796
* isAtBreakpoint.
797
- * @param t the thread to addCode info about
797
+ * @param t the thread to print info about
798
798
*/
799
799
protected void printThread (ThreadReference t ) {
800
800
System .out .println (t .name ());
@@ -896,7 +896,7 @@ protected void updateVariableInspector(ThreadReference t) {
896
896
javax .swing .SwingUtilities .invokeLater (new Runnable () {
897
897
@ Override
898
898
public void run () {
899
- //System.out.addEmptyLine ("updating vi. from EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
899
+ //System.out.println ("updating vi. from EDT: " + javax.swing.SwingUtilities.isEventDispatchThread());
900
900
vi .updateCallStack (stackTrace , "Call Stack" );
901
901
vi .updateLocals (locals , "Locals at " + currentLocation );
902
902
vi .updateThisFields (thisFields , "Class " + thisName );
@@ -974,13 +974,13 @@ protected String locationToString(Location loc) {
974
974
* @return the list of current locals
975
975
*/
976
976
protected List <VariableNode > getLocals (ThreadReference t , int depth ) {
977
- //System.out.addEmptyLine ("getting locals");
977
+ //System.out.println ("getting locals");
978
978
List <VariableNode > vars = new ArrayList <>();
979
979
try {
980
980
if (t .frameCount () > 0 ) {
981
981
StackFrame sf = t .frame (0 );
982
982
for (LocalVariable lv : sf .visibleVariables ()) {
983
- //System.out.addEmptyLine ("local var: " + lv.name());
983
+ //System.out.println ("local var: " + lv.name());
984
984
Value val = sf .getValue (lv );
985
985
VariableNode var = new LocalVariableNode (lv .name (), lv .typeName (), val , lv , sf );
986
986
if (depth > 0 ) {
@@ -1163,11 +1163,11 @@ protected void printSourceLocation(ThreadReference t) {
1163
1163
1164
1164
/**
1165
1165
* Print source code snippet.
1166
- * @param l {@link Location} object to addCode source code for
1166
+ * @param l {@link Location} object to print source code for
1167
1167
*/
1168
1168
protected void printSourceLocation (Location l ) {
1169
1169
try {
1170
- //System.out.addEmptyLine (l.sourceName() + ":" + l.lineNumber());
1170
+ //System.out.println (l.sourceName() + ":" + l.lineNumber());
1171
1171
System .out .println ("in method " + l .method () + ":" );
1172
1172
System .out .println (getSourceLine (l .sourcePath (), l .lineNumber (), 2 ));
1173
1173
@@ -1189,7 +1189,7 @@ protected String getSourceLine(String filePath, int lineNo, int radius) {
1189
1189
loge ("invalid line number: " + lineNo , null );
1190
1190
return "" ;
1191
1191
}
1192
- //System.out.addEmptyLine ("getting line: " + lineNo);
1192
+ //System.out.println ("getting line: " + lineNo);
1193
1193
File f = new File (srcPath + File .separator + filePath );
1194
1194
String output = "" ;
1195
1195
try {
@@ -1213,7 +1213,7 @@ protected String getSourceLine(String filePath, int lineNo, int radius) {
1213
1213
return output ;
1214
1214
1215
1215
} catch (FileNotFoundException ex ) {
1216
- //System.err.addEmptyLine (ex);
1216
+ //System.err.println (ex);
1217
1217
return f .getName () + ":" + lineNo ;
1218
1218
1219
1219
} catch (IOException ex ) {
@@ -1226,7 +1226,7 @@ protected String getSourceLine(String filePath, int lineNo, int radius) {
1226
1226
/**
1227
1227
* Print info about a ReferenceType. Prints class name, source file name,
1228
1228
* lists methods.
1229
- * @param rt the reference type to addCode out
1229
+ * @param rt the reference type to print out
1230
1230
*/
1231
1231
protected void printType (ReferenceType rt ) {
1232
1232
System .out .println ("ref.type: " + rt );
@@ -1375,13 +1375,13 @@ protected void startTrackingLineChanges() {
1375
1375
runtimeLineChanges .put (old , tracked );
1376
1376
}
1377
1377
runtimeTabsTracked .add (tab .getFileName ());
1378
- //System.out.addEmptyLine ("tracking tab: " + tab.getFileName());
1378
+ //System.out.println ("tracking tab: " + tab.getFileName());
1379
1379
}
1380
1380
1381
1381
1382
1382
/** Stop tracking line changes in all tabs. */
1383
1383
protected void stopTrackingLineChanges () {
1384
- //System.out.addEmptyLine ("stop tracking line changes");
1384
+ //System.out.println ("stop tracking line changes");
1385
1385
for (LineID tracked : runtimeLineChanges .values ()) {
1386
1386
tracked .stopTracking ();
1387
1387
}
@@ -1456,7 +1456,7 @@ public void run() {
1456
1456
while (true ) {
1457
1457
EventSet eventSet = eventQueue .remove ();
1458
1458
listener .vmEvent (eventSet );
1459
- // for (Event e : eventSet) { System.out.addEmptyLine ("VM Event: " + e.toString()); }
1459
+ // for (Event e : eventSet) { System.out.println ("VM Event: " + e.toString()); }
1460
1460
}
1461
1461
} catch (VMDisconnectedException e ) {
1462
1462
Messages .log ("VMEventReader quit on VM disconnect" );
0 commit comments