@@ -317,49 +317,49 @@ public synchronized void stepOut() {
317317 }
318318
319319
320- /** Print the current stack trace. */
321- public synchronized void printStackTrace () {
322- if (isStarted ()) {
323- printStackTrace (currentThread );
324- }
325- }
326-
327-
328- /**
329- * Print local variables. Outputs type, name and value of each variable.
330- */
331- public synchronized void printLocals () {
332- if (isStarted ()) {
333- printLocalVariables (currentThread );
334- }
335- }
336-
337-
338- /**
339- * Print fields of current {@code this}-object.
340- * Outputs type, name and value of each field.
341- */
342- public synchronized void printThis () {
343- if (isStarted ()) {
344- printThis (currentThread );
345- }
346- }
347-
348-
349- /**
350- * Print a source code snippet of the current location.
351- */
352- public synchronized void printSource () {
353- if (isStarted ()) {
354- printSourceLocation (currentThread );
355- }
356- }
320+ // /** Print the current stack trace. */
321+ // public synchronized void printStackTrace() {
322+ // if (isStarted()) {
323+ // printStackTrace(currentThread);
324+ // }
325+ // }
326+ //
327+ //
328+ // /**
329+ // * Print local variables. Outputs type, name and value of each variable.
330+ // */
331+ // public synchronized void printLocals() {
332+ // if (isStarted()) {
333+ // printLocalVariables(currentThread);
334+ // }
335+ // }
336+ //
337+ //
338+ // /**
339+ // * Print fields of current {@code this}-object.
340+ // * Outputs type, name and value of each field.
341+ // */
342+ // public synchronized void printThis() {
343+ // if (isStarted()) {
344+ // printThis(currentThread);
345+ // }
346+ // }
347+ //
348+ //
349+ // /**
350+ // * Print a source code snippet of the current location.
351+ // */
352+ // public synchronized void printSource() {
353+ // if (isStarted()) {
354+ // printSourceLocation(currentThread);
355+ // }
356+ // }
357357
358358
359359 /**
360360 * Set a breakpoint on the current line.
361361 */
362- public synchronized void setBreakpoint () {
362+ synchronized void setBreakpoint () {
363363 setBreakpoint (editor .getCurrentLineID ());
364364 }
365365
@@ -369,12 +369,12 @@ public synchronized void setBreakpoint() {
369369 * @param lineIdx the line index (0-based) of the current tab to set the
370370 * breakpoint on
371371 */
372- public synchronized void setBreakpoint (int lineIdx ) {
372+ synchronized void setBreakpoint (int lineIdx ) {
373373 setBreakpoint (editor .getLineIDInCurrentTab (lineIdx ));
374374 }
375375
376376
377- public synchronized void setBreakpoint (LineID line ) {
377+ synchronized void setBreakpoint (LineID line ) {
378378 // do nothing if we are kinda busy
379379 if (isStarted () && !isPaused ()) {
380380 return ;
@@ -391,7 +391,7 @@ public synchronized void setBreakpoint(LineID line) {
391391 /**
392392 * Remove a breakpoint from the current line (if set).
393393 */
394- public synchronized void removeBreakpoint () {
394+ synchronized void removeBreakpoint () {
395395 removeBreakpoint (editor .getCurrentLineID ().lineIdx ());
396396 }
397397
@@ -402,7 +402,7 @@ public synchronized void removeBreakpoint() {
402402 * @param lineIdx the line index (0-based) in the current tab to remove the
403403 * breakpoint from
404404 */
405- protected void removeBreakpoint (int lineIdx ) {
405+ void removeBreakpoint (int lineIdx ) {
406406 // do nothing if we are kinda busy
407407 if (isBusy ()) {
408408 return ;
@@ -418,7 +418,7 @@ protected void removeBreakpoint(int lineIdx) {
418418
419419
420420 /** Remove all breakpoints. */
421- public synchronized void clearBreakpoints () {
421+ synchronized void clearBreakpoints () {
422422 //TODO: handle busy-ness correctly
423423 if (isBusy ()) {
424424 log (Level .WARNING , "busy" );
@@ -436,7 +436,7 @@ public synchronized void clearBreakpoints() {
436436 * Clear breakpoints in a specific tab.
437437 * @param tabFilename the tab's file name
438438 */
439- public synchronized void clearBreakpoints (String tabFilename ) {
439+ synchronized void clearBreakpoints (String tabFilename ) {
440440 //TODO: handle busy-ness correctly
441441 if (isBusy ()) {
442442 log (Level .WARNING , "busy" );
@@ -460,7 +460,7 @@ public synchronized void clearBreakpoints(String tabFilename) {
460460 * @return the breakpoint, or null if no breakpoint is set on the specified
461461 * line.
462462 */
463- protected LineBreakpoint breakpointOnLine (LineID line ) {
463+ LineBreakpoint breakpointOnLine (LineID line ) {
464464 for (LineBreakpoint bp : breakpoints ) {
465465 if (bp .isOnLine (line )) {
466466 return bp ;
@@ -471,7 +471,7 @@ protected LineBreakpoint breakpointOnLine(LineID line) {
471471
472472
473473 /** Toggle a breakpoint on the current line. */
474- public synchronized void toggleBreakpoint () {
474+ synchronized void toggleBreakpoint () {
475475 toggleBreakpoint (editor .getCurrentLineID ().lineIdx ());
476476 }
477477
@@ -480,7 +480,7 @@ public synchronized void toggleBreakpoint() {
480480 * Toggle a breakpoint on a line in the current tab.
481481 * @param lineIdx the line index (0-based) in the current tab
482482 */
483- public synchronized void toggleBreakpoint (int lineIdx ) {
483+ synchronized void toggleBreakpoint (int lineIdx ) {
484484 LineID line = editor .getLineIDInCurrentTab (lineIdx );
485485 if (!hasBreakpoint (line )) {
486486 setBreakpoint (line .lineIdx ());
@@ -501,25 +501,25 @@ protected boolean hasBreakpoint(LineID line) {
501501 }
502502
503503
504- /** Print a list of currently set breakpoints. */
505- public synchronized void listBreakpoints () {
506- if (breakpoints .isEmpty ()) {
507- System .out .println ("no breakpoints" );
508- } else {
509- System .out .println ("line breakpoints:" );
510- for (LineBreakpoint bp : breakpoints ) {
511- System .out .println (bp );
512- }
513- }
514- }
504+ // /** Print a list of currently set breakpoints. */
505+ // public synchronized void listBreakpoints() {
506+ // if (breakpoints.isEmpty()) {
507+ // System.out.println("no breakpoints");
508+ // } else {
509+ // System.out.println("line breakpoints:");
510+ // for (LineBreakpoint bp : breakpoints) {
511+ // System.out.println(bp);
512+ // }
513+ // }
514+ // }
515515
516516
517517 /**
518518 * Retrieve a list of breakpoint in a particular tab.
519519 * @param tabFilename the tab's file name
520520 * @return the list of breakpoints in the given tab
521521 */
522- public synchronized List <LineBreakpoint > getBreakpoints (String tabFilename ) {
522+ synchronized List <LineBreakpoint > getBreakpoints (String tabFilename ) {
523523 List <LineBreakpoint > list = new ArrayList <LineBreakpoint >();
524524 for (LineBreakpoint bp : breakpoints ) {
525525 if (bp .lineID ().fileName ().equals (tabFilename )) {
0 commit comments