Changeset 984 for trunk/autoquest-plugin-jfc/src/main/java/de
- Timestamp:
- 11/14/12 10:48:37 (12 years ago)
- Location:
- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r965 r984 136 136 * </p> 137 137 */ 138 private List<String> current AncestorList;138 private List<String> currentClassHierarchy; 139 139 140 140 /** … … 356 356 } 357 357 else if (qName.equals("ancestor")){ 358 current AncestorList.add(atts.getValue("name"));358 currentClassHierarchy.add(atts.getValue("name")); 359 359 } 360 360 else if (qName.equals("ancestors")){ 361 current AncestorList= new LinkedList<String>();361 currentClassHierarchy = new LinkedList<String>(); 362 362 } 363 363 } … … 376 376 } 377 377 currentSequence = null; 378 } 379 else if (qName.equals("ancestors")){ 380 currentGuiElementSpec.setClassHierarchy(currentClassHierarchy); 378 381 } 379 382 else if (qName.equals("component") && currentComponentHash != null) { … … 383 386 currentComponentHash = null; 384 387 currentParentHash = null; 385 current AncestorList= null;388 currentClassHierarchy = null; 386 389 } 387 390 else if (currentEventId != null) { -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCComponentTree.java
r965 r984 69 69 * </p> 70 70 */ 71 private GUIModel guiModel = new GUIModel();71 private GUIModel guiModel; 72 72 73 73 /** … … 96 96 parentRelations = new HashMap<Integer, JFCGUIElementSpec>(); 97 97 guiElements = new HashMap<Integer, JFCGUIElement>(); 98 guiModel = new GUIModel(); 99 } 100 101 /** 102 * <p> 103 * Creates a JFCComponentTree with an already existing guiModel 104 * @param guiModel 105 * </p> 106 */ 107 public JFCComponentTree(GUIModel guiModel){ 108 guiElementSpecs = new HashMap<Integer, JFCGUIElementSpec>(); 109 childRelations = new HashMap<Integer, List<JFCGUIElementSpec>>(); 110 parentRelations = new HashMap<Integer, JFCGUIElementSpec>(); 111 guiElements = new HashMap<Integer, JFCGUIElement>(); 112 this.guiModel = guiModel; 98 113 } 99 114 -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCGUIElementSpec.java
r966 r984 88 88 */ 89 89 private List<Integer> formerElementHashes = new ArrayList<Integer>(); 90 91 /** 92 * <p> 93 * Class hierarchy of the class itself 94 * </p> 95 */ 96 private List<String> classHierarchy = null; 90 97 91 98 /* … … 364 371 this.elementHash = newElementHash; 365 372 } 373 374 /** 375 * <p> 376 * Sets the class hierarchy of the specified GUI element. 377 * @param classHierarchy 378 * </p> 379 */ 380 public void setClassHierarchy(List<String> classHierarchy){ 381 this.classHierarchy = classHierarchy; 382 } 366 383 367 384 /** … … 405 422 @Override 406 423 public String[] getClassHierarchy() { 407 // TODO Auto-generated method stub 408 System.out.println("TODO: implement IGUIElementSpec.getClassHierarchy "); 409 return null; 424 if (classHierarchy == null){ 425 return new String[]{(getType())}; 426 } 427 else 428 return classHierarchy.toArray(new String[classHierarchy.size()]); 410 429 } 411 430
Note: See TracChangeset
for help on using the changeset viewer.