Index: trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
===================================================================
--- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java	(revision 966)
+++ trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java	(revision 984)
@@ -136,5 +136,5 @@
      * </p> 
      */
-    private List<String> currentAncestorList;
+    private List<String> currentClassHierarchy;
 
     /**
@@ -356,8 +356,8 @@
         }
         else if (qName.equals("ancestor")){
-        		currentAncestorList.add(atts.getValue("name"));
+        		currentClassHierarchy.add(atts.getValue("name"));
         }
         else if (qName.equals("ancestors")){
-        		currentAncestorList = new LinkedList<String>();
+        		currentClassHierarchy = new LinkedList<String>();
         }
     }
@@ -376,4 +376,7 @@
             }
             currentSequence = null;
+        }
+        else if (qName.equals("ancestors")){
+        	currentGuiElementSpec.setClassHierarchy(currentClassHierarchy);
         }
         else if (qName.equals("component") && currentComponentHash != null) {
@@ -383,5 +386,5 @@
         	currentComponentHash = null;
         	currentParentHash = null;
-        	currentAncestorList = null;
+        	currentClassHierarchy = null;
         }
         else if (currentEventId != null) {
Index: trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCComponentTree.java
===================================================================
--- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCComponentTree.java	(revision 966)
+++ trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCComponentTree.java	(revision 984)
@@ -69,5 +69,5 @@
      * </p>
      */
-    private GUIModel guiModel = new GUIModel();
+    private GUIModel guiModel;
 
     /**
@@ -96,4 +96,19 @@
         parentRelations = new HashMap<Integer, JFCGUIElementSpec>();
         guiElements = new HashMap<Integer, JFCGUIElement>();
+        guiModel = new GUIModel();
+    }
+    
+    /**
+     * <p>
+     * Creates a JFCComponentTree with an already existing guiModel
+     * @param guiModel
+     * </p>
+     */
+    public JFCComponentTree(GUIModel guiModel){
+        guiElementSpecs = new HashMap<Integer, JFCGUIElementSpec>();
+        childRelations = new HashMap<Integer, List<JFCGUIElementSpec>>();
+        parentRelations = new HashMap<Integer, JFCGUIElementSpec>();
+        guiElements = new HashMap<Integer, JFCGUIElement>();
+        this.guiModel = guiModel;
     }
 
Index: trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java
===================================================================
--- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java	(revision 966)
+++ trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java	(revision 984)
@@ -88,4 +88,11 @@
      */
     private List<Integer> formerElementHashes = new ArrayList<Integer>();
+    
+    /**
+     * <p>
+     * Class hierarchy of the class itself
+     * </p>
+     */
+    private List<String> classHierarchy = null;
 
     /*
@@ -364,4 +371,14 @@
         this.elementHash = newElementHash;
     }
+    
+    /**
+     * <p>
+     * Sets the class hierarchy of the specified GUI element.
+     * @param classHierarchy
+     * </p>
+     */
+    public void setClassHierarchy(List<String> classHierarchy){
+    	this.classHierarchy = classHierarchy;
+    }
 
     /**
@@ -405,7 +422,9 @@
     @Override
     public String[] getClassHierarchy() {
-        // TODO Auto-generated method stub
-        System.out.println("TODO: implement IGUIElementSpec.getClassHierarchy ");
-        return null;
+    	if (classHierarchy == null){
+    		return new String[]{(getType())};
+    	}
+    	else
+    		return classHierarchy.toArray(new String[classHierarchy.size()]);
     }
 
