Changeset 6696


Ignore:
Timestamp:
07/13/10 15:31:46 (9 years ago)
Author:
curtis
Message:

Add toString method to StatusEvent, for debugging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/common/src/loci/common/StatusEvent.java

    r6132 r6696  
    8686  public boolean isWarning() { return warning; } 
    8787 
     88  // -- Object API methods -- 
     89 
     90  @Override 
     91  public String toString() { 
     92    StringBuilder sb = new StringBuilder(); 
     93    sb.append("Status"); 
     94    sb.append(": progress=" + progress); 
     95    sb.append(", maximum=" + maximum); 
     96    sb.append(", warning=" + warning); 
     97    sb.append(", status='" + status + "'"); 
     98    return sb.toString(); 
     99  } 
     100 
    88101} 
Note: See TracChangeset for help on using the changeset viewer.