Changeset 965 for trunk/autoquest-plugin-jfc/src/main/java/de/ugoe
- Timestamp:
- 11/07/12 11:59:49 (12 years ago)
- Location:
- trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/JFCSimplifiedLogParser.java
r963 r965 78 78 * </p> 79 79 */ 80 private LongcurrentComponentHash;80 private Integer currentComponentHash; 81 81 82 82 /** … … 86 86 * </p> 87 87 */ 88 private LongcurrentParentHash;88 private Integer currentParentHash; 89 89 90 90 /** … … 93 93 * </p> 94 94 */ 95 private LongcurrentEventSource;95 private Integer currentEventSource; 96 96 97 97 /** … … 312 312 } 313 313 else if (qName.equals("component")) { 314 currentComponentHash = Long.parseLong(atts.getValue("hash"), 16);314 currentComponentHash = (int) Long.parseLong(atts.getValue("hash"), 16); 315 315 currentGuiElementSpec = new JFCGUIElementSpec(); 316 316 currentGuiElementSpec.setElementHash((int) currentComponentHash.longValue()); … … 324 324 } 325 325 else if (qName.equals("componentNameChange")) { 326 Long sourceHash =Long.parseLong(atts.getValue("hash"), 16);326 int sourceHash = (int) Long.parseLong(atts.getValue("hash"), 16); 327 327 String newName = atts.getValue("newName"); 328 328 int titleSource = Integer.parseInt(atts.getValue("titleSource")); … … 334 334 if (currentEventId != null){ 335 335 if ("source".equals(atts.getValue("name"))){ 336 currentEventSource = Long.parseLong(atts.getValue("value"), 16);336 currentEventSource = (int) Long.parseLong(atts.getValue("value"), 16); 337 337 } 338 338 currentEventParameters.put(atts.getValue("name"), atts.getValue("value")); … … 351 351 } 352 352 else if ("parent".equals(atts.getValue("name"))) { 353 currentParentHash = Long.parseLong(atts.getValue("value"), 16);353 currentParentHash = (int) Long.parseLong(atts.getValue("value"), 16); 354 354 } 355 355 } … … 378 378 } 379 379 else if (qName.equals("component") && currentComponentHash != null) { 380 currentComponentTree.add(current ParentHash, currentComponentHash, currentGuiElementSpec);380 currentComponentTree.add(currentComponentHash, currentParentHash, currentGuiElementSpec); 381 381 // do something with the ancestor list here 382 382 -
trunk/autoquest-plugin-jfc/src/main/java/de/ugoe/cs/autoquest/plugin/jfc/guimodel/JFCComponentTree.java
r963 r965 17 17 import java.util.ArrayList; 18 18 import java.util.HashMap; 19 import java.util.HashSet;20 19 import java.util.List; 21 20 import java.util.Map; 22 import java.util.Set;23 21 24 22 import de.ugoe.cs.autoquest.eventcore.guimodel.GUIElementFactory; … … 48 46 * </p> 49 47 */ 50 private Map< Long, JFCGUIElementSpec> guiElementSpecs;48 private Map<Integer, JFCGUIElementSpec> guiElementSpecs; 51 49 52 50 /** … … 56 54 * </p> 57 55 */ 58 private Map< Long, List<JFCGUIElementSpec>> childRelations;56 private Map<Integer, List<JFCGUIElementSpec>> childRelations; 59 57 60 58 /** … … 64 62 * </p> 65 63 */ 66 private Map< Long, JFCGUIElementSpec> parentRelations;64 private Map<Integer, JFCGUIElementSpec> parentRelations; 67 65 68 66 /** … … 86 84 * </p> 87 85 */ 88 private Map< Long, JFCGUIElement> guiElements;86 private Map<Integer, JFCGUIElement> guiElements; 89 87 90 88 /** … … 94 92 */ 95 93 public JFCComponentTree() { 96 guiElementSpecs = new HashMap< Long, JFCGUIElementSpec>();97 childRelations = new HashMap< Long, List<JFCGUIElementSpec>>();98 parentRelations = new HashMap< Long, JFCGUIElementSpec>();99 guiElements = new HashMap< Long, JFCGUIElement>();94 guiElementSpecs = new HashMap<Integer, JFCGUIElementSpec>(); 95 childRelations = new HashMap<Integer, List<JFCGUIElementSpec>>(); 96 parentRelations = new HashMap<Integer, JFCGUIElementSpec>(); 97 guiElements = new HashMap<Integer, JFCGUIElement>(); 100 98 } 101 99 … … 105 103 * </p> 106 104 * 105 * @param componentHash 106 * hash of the window to be created 107 107 * @param parentHash 108 108 * hash of the parent window 109 * @param componentHash110 * hash of the window to be created111 109 * @param componentSpec 112 110 * the component specification 113 111 */ 114 public void add( Long parentHash,115 Long componentHash,112 public void add(Integer componentHash, 113 Integer parentHash, 116 114 JFCGUIElementSpec componentSpec) 117 115 { … … 162 160 * @return {@link JFCGUIElementSpec} of the window with the given hash if found, null otherwise 163 161 */ 164 public JFCGUIElement find( longhash) {162 public JFCGUIElement find(int hash) { 165 163 JFCGUIElement guiElement = guiElements.get(hash); 166 164 if (guiElement == null) { … … 200 198 * new name of the GUI element 201 199 */ 202 public void setName( longhash, String windowName) {200 public void setName(int hash, String windowName) { 203 201 JFCGUIElementSpec child = guiElementSpecs.get(hash); 204 202 if (child != null) {
Note: See TracChangeset
for help on using the changeset viewer.