Ignore:
Timestamp:
08/23/12 09:08:47 (12 years ago)
Author:
sherbold
Message:
  • updated JFC GUI mappings
  • changed JFCGUIElementSpec to store the elementHash as String instead of int. The reason for this is a problem that Integer.parseInt() that can occur with handling of negative hexadecimal values.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/JFCLogParser.java

    r585 r588  
    347347                    } 
    348348                    else if ("hash".equals(atts.getValue("name"))) { 
    349                         currentGuiElementSpec.setElementHash 
    350                             (Integer.parseInt(atts.getValue("value"), 16)); 
     349                        currentGuiElementSpec.setElementHash(atts.getValue("value")); 
    351350                    } 
    352351                } 
     
    654653            currentGuiElementSpec.setIcon("unknown"); 
    655654            currentGuiElementSpec.setIndex(-1); 
    656             currentGuiElementSpec.setElementHash(-1); 
     655            currentGuiElementSpec.setElementHash("-1"); 
    657656        } 
    658657        catch (Exception e) 
Note: See TracChangeset for help on using the changeset viewer.