Changeset 736 for trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParser.java
- Timestamp:
- 08/31/12 15:16:13 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParser.java
r713 r736 340 340 else if ("hash".equals(atts.getValue("name"))) { 341 341 currentGuiElementSpec.setElementHash 342 ( Integer.parseInt(atts.getValue("value"), 16));342 (atts.getValue("value")); 343 343 } 344 344 } … … 645 645 matcher = Pattern.compile(pattern).matcher(matcher.group(2)); 646 646 647 float elementHash = -1;647 String elementHash = "-1"; 648 648 649 649 pattern = "(([\\d]*)|([\\w$]*)|(([\\w$@\\.]*)=([\\w$@\\.]*)))\\z"; … … 656 656 // found digit value. Those in combination usually denote the position 657 657 // of the GUI element. So calculate an element has out of them 658 elementHash += Integer.parseInt(valueMatcher.group(2));658 elementHash += valueMatcher.group(2); 659 659 } 660 660 else if ((valueMatcher.group(5) != null) && … … 667 667 668 668 if ("alignmentX".equals(key) || "alignmentY".equals(key)) { 669 elementHash += Float.parseFloat(valueMatcher.group(6));669 elementHash += valueMatcher.group(6); 670 670 } 671 671 } … … 673 673 } 674 674 675 currentGuiElementSpec.setName("unknown(" + ((int) elementHash)+ ")");675 currentGuiElementSpec.setName("unknown(" + elementHash + ")"); 676 676 currentGuiElementSpec.setType(type); 677 677 currentGuiElementSpec.setIndex(-1); 678 currentGuiElementSpec.setElementHash( (int)elementHash);678 currentGuiElementSpec.setElementHash(elementHash); 679 679 } 680 680 catch (Exception e)
Note: See TracChangeset
for help on using the changeset viewer.