Ignore:
Timestamp:
10/18/12 11:28:20 (12 years ago)
Author:
fglaser
Message:
  • added <ancestors> tag around class inheritance information in component
  • colapsed <source>...</source> to <param="source" value="...">
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  
    471471        StringBuilder builder = new StringBuilder(); 
    472472        Class<? extends Object> classobject = component.getClass(); 
     473        builder.append(" <ancestors>"); 
    473474        while(classobject.getSuperclass() != null){ 
    474475                classobject = classobject.getSuperclass(); 
    475                 builder.append(" <ancestor name=\""); 
     476                builder.append("  <ancestor name=\""); 
    476477                builder.append(classobject.getName()); 
    477478                builder.append("\" />" + StringTools.ENDLINE); 
    478479        } 
     480        builder.append(" </ancestors>" + StringTools.ENDLINE); 
    479481        return builder.toString(); 
    480482    } 
  • trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCListener.java

    r927 r932  
    118118     */ 
    119119    private void addSourceInfo(StringBuilder builder, AWTEvent event) { 
    120         builder.append(" <source"); 
     120        builder.append(" <param name=\"source\""); 
    121121        if (event.getSource() instanceof Component) { 
    122122            Component source = (Component) event.getSource(); 
    123             builder.append(" hash=\"" + Integer.toHexString(source.hashCode()) + "\""); 
     123            builder.append(" value=\"" + Integer.toHexString(source.hashCode()) + "\""); 
    124124        }   
    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); 
    130126    } 
    131127 
Note: See TracChangeset for help on using the changeset viewer.