Changeset 1009 for trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
- Timestamp:
- 12/11/12 17:24:30 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r1004 r1009 42 42 import de.ugoe.cs.autoquest.keyboardmaps.VirtualKey; 43 43 import de.ugoe.cs.autoquest.plugin.jfc.eventcore.JFCEventId; 44 import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCComponentTree;45 44 import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCGUIElement; 46 45 import de.ugoe.cs.autoquest.plugin.jfc.guimodel.JFCGUIElementSpec; … … 76 75 * 77 76 * <p> 78 * Internal handle to the hashcode of the component, that is currently parsed.79 * </p> 80 */ 81 private Long current ComponentHash;77 * Internal handle to the hashcode of the GUI element, that is currently parsed. 78 * </p> 79 */ 80 private Long currentGUIElementHash; 82 81 83 82 /** 84 83 * 85 84 * <p> 86 * Internal handle to the hashcode of the parent of the component, that is currently parsed.85 * Internal handle to the hashcode of the parent of the GUI element, that is currently parsed. 87 86 * </p> 88 87 */ … … 118 117 /** 119 118 * <p> 120 * internal handle to the parameters currently parsed for a component119 * internal handle to the specification currently parsed for a GUI element 121 120 * </p> 122 121 */ … … 125 124 /** 126 125 * <p> 127 * internal handle to the parsed gui structure, stored in a JFCComponentTree126 * internal handle to the parsed GUI structure, stored in a GUIElementTree 128 127 * </p> 129 128 */ … … 132 131 /** 133 132 * <p> 134 * internal handle to the component of the previous event to be potentially reused for the133 * internal handle to the GUI element of the previous event to be potentially reused for the 135 134 * current 136 135 * </p> … … 288 287 /** 289 288 * <p> 290 * Returns the guimodel that is obtained from parsing log files.289 * Returns the GUI model that is obtained from parsing log files. 291 290 * </p> 292 291 * … … 319 318 } 320 319 else if (qName.equals("component")) { 321 current ComponentHash = Long.parseLong(atts.getValue("hash"), 16);320 currentGUIElementHash = Long.parseLong(atts.getValue("hash"), 16); 322 321 currentGuiElementSpec = new JFCGUIElementSpec(); 323 currentGuiElementSpec.setElementHash((int) current ComponentHash.longValue());322 currentGuiElementSpec.setElementHash((int) currentGUIElementHash.longValue()); 324 323 } 325 324 else if (qName.equals("event")) { … … 347 346 } 348 347 currentEventParameters.put(atts.getValue("name"), atts.getValue("value")); 349 } else if(current ComponentHash != null){348 } else if(currentGUIElementHash != null){ 350 349 if ("title".equals(atts.getValue("name"))) { 351 350 currentGuiElementSpec.setName(atts.getValue("value")); … … 390 389 currentGuiElementSpec.setTypeHierarchy(currentTypeHierarchy); 391 390 } 392 else if (qName.equals("component") && current ComponentHash != null) {393 currentGUIElementTree.add(current ComponentHash, currentParentHash, currentGuiElementSpec);391 else if (qName.equals("component") && currentGUIElementHash != null) { 392 currentGUIElementTree.add(currentGUIElementHash, currentParentHash, currentGuiElementSpec); 394 393 // do something with the ancestor list here 395 394 396 current ComponentHash = null;395 currentGUIElementHash = null; 397 396 currentParentHash = null; 398 397 currentTypeHierarchy = null; … … 609 608 /** 610 609 * <p> 611 * for some events in the log file, no component specification is provided. In this case the610 * for some events in the log file, no GUI element specification is provided. In this case the 612 611 * GUI element on which the event is executed must be determined based on the 613 612 * <code>toString</code> parameter of the event. This is achieved through this method. The
Note: See TracChangeset
for help on using the changeset viewer.