Changeset 932
- Timestamp:
- 10/18/12 11:28:20 (12 years ago)
- Location:
- trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCComponent.java
r928 r932 471 471 StringBuilder builder = new StringBuilder(); 472 472 Class<? extends Object> classobject = component.getClass(); 473 builder.append(" <ancestors>"); 473 474 while(classobject.getSuperclass() != null){ 474 475 classobject = classobject.getSuperclass(); 475 builder.append(" <ancestor name=\"");476 builder.append(" <ancestor name=\""); 476 477 builder.append(classobject.getName()); 477 478 builder.append("\" />" + StringTools.ENDLINE); 478 479 } 480 builder.append(" </ancestors>" + StringTools.ENDLINE); 479 481 return builder.toString(); 480 482 } -
trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCListener.java
r927 r932 118 118 */ 119 119 private void addSourceInfo(StringBuilder builder, AWTEvent event) { 120 builder.append(" < source");120 builder.append(" <param name=\"source\""); 121 121 if (event.getSource() instanceof Component) { 122 122 Component source = (Component) event.getSource(); 123 builder.append(" hash=\"" + Integer.toHexString(source.hashCode()) + "\"");123 builder.append(" value=\"" + Integer.toHexString(source.hashCode()) + "\""); 124 124 } 125 builder.append(">" + StringTools.ENDLINE); 126 builder.append(" <param name=\"toString\" value=\"" + 127 StringTools.xmlEntityReplacement(event.getSource().toString()) + "\" />" + 128 StringTools.ENDLINE); 129 builder.append(" </source>" + StringTools.ENDLINE); 125 builder.append(" />" + StringTools.ENDLINE); 130 126 } 131 127
Note: See TracChangeset
for help on using the changeset viewer.