Ignore:
Timestamp:
11/14/12 10:48:37 (12 years ago)
Author:
fglaser
Message:
  • Automatic class hierarchy scanning for to select correct mapping added
  • JFCComponentTree can now be inititialized with an existing GUIModel
  • JFCSimplifiedLogParser now writes the class itself as the first entry in ancestors children
  • newtrace updated to reflect changes in test case
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-jfcmonitor/src/main/java/de/ugoe/cs/autoquest/jfcmonitor/JFCComponent.java

    r933 r984  
    302302                builder.append("\" />" + StringTools.ENDLINE); 
    303303        } 
    304         builder.append(getInheritanceTree()); 
     304        builder.append(getClassHierarchy()); 
    305305        builder.append("</component>" + StringTools.ENDLINE); 
    306306         
     
    468468     * @return 
    469469     */ 
    470     private String getInheritanceTree(){ 
     470    private String getClassHierarchy(){ 
    471471        StringBuilder builder = new StringBuilder(); 
    472472        Class<? extends Object> classobject = component.getClass(); 
    473473        builder.append(" <ancestors>" + StringTools.ENDLINE); 
    474         while(classobject.getSuperclass() != null){ 
    475                 classobject = classobject.getSuperclass(); 
     474        while(classobject != null){ 
    476475                builder.append("  <ancestor name=\""); 
    477476                builder.append(classobject.getName()); 
    478477                builder.append("\" />" + StringTools.ENDLINE); 
     478                classobject = classobject.getSuperclass(); 
    479479        } 
    480480        builder.append(" </ancestors>" + StringTools.ENDLINE); 
Note: See TracChangeset for help on using the changeset viewer.