Changeset 933 for trunk/autoquest-jfcmonitor/src/main/java
- Timestamp:
- 10/18/12 16:04:02 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCComponent.java
r932 r933 289 289 setTitle(); 290 290 StringBuilder builder = new StringBuilder(); 291 builder.append("<component"); 292 if (parent != null){ 293 if (!JFCComponent.isKnown(parent.component)) 294 throw new AssertionError("Referenced parent is not known."); 295 builder.append(" parent=\"" + Integer.toHexString(parent.component.hashCode()) + "\""); 296 } 297 builder.append(">"+ StringTools.ENDLINE); 291 builder.append("<component hash=\""); 292 builder.append(Integer.toHexString(component.hashCode()) + "\" >" + StringTools.ENDLINE); 298 293 builder.append(" <param name=\"title\" value=\"" + title + "\" />" + StringTools.ENDLINE); 299 294 builder.append(" <param name=\"class\" value=\"" + componentClass + "\" />" + … … 301 296 builder.append(" <param name=\"icon\" value=\"" + icon + "\" />" + StringTools.ENDLINE); 302 297 builder.append(" <param name=\"index\" value=\"" + index + "\" />" + StringTools.ENDLINE); 303 builder.append(" <param name=\"hash\" value=\"" + 304 Integer.toHexString(component.hashCode()) + "\" />" + StringTools.ENDLINE); 298 if (parent != null){ 299 if (!JFCComponent.isKnown(parent.component)) 300 throw new AssertionError("Referenced parent is not known."); 301 builder.append(" <param name=\"parent\" value=\"" + Integer.toHexString(parent.component.hashCode())); 302 builder.append("\" />" + StringTools.ENDLINE); 303 } 305 304 builder.append(getInheritanceTree()); 306 305 builder.append("</component>" + StringTools.ENDLINE); 306 307 307 return builder.toString(); 308 308 } … … 471 471 StringBuilder builder = new StringBuilder(); 472 472 Class<? extends Object> classobject = component.getClass(); 473 builder.append(" <ancestors>" );473 builder.append(" <ancestors>" + StringTools.ENDLINE); 474 474 while(classobject.getSuperclass() != null){ 475 475 classobject = classobject.getSuperclass();
Note: See TracChangeset
for help on using the changeset viewer.