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/guimodel/JFCGUIElementSpec.java

    r573 r588  
    1919 
    2020    /** */ 
    21     private String name; 
     21    private String name = null; 
    2222     
    2323    /** */ 
    24     private String type; 
     24    private String type = null; 
    2525     
    2626    /** */ 
    27     private String icon; 
     27    private String icon = null; 
    2828     
    2929    /** */ 
    30     private int index; 
     30    private int index = -1; 
    3131     
    3232    /** */ 
    33     private int elementHash; 
     33    private String elementHash = null; 
    3434     
    3535    /* (non-Javadoc) 
     
    6767        } 
    6868 
    69         if (elementHash == otherSpec.elementHash) { 
     69        if (elementHash == otherSpec.elementHash || ((elementHash!=null) && elementHash.equals(otherSpec.elementHash))) { 
    7070            result += 15; 
    7171        } 
     
    129129     * @return the elementHash 
    130130     */ 
    131     public int getElementHash() { 
     131    public String getElementHash() { 
    132132        return elementHash; 
    133133    } 
     
    164164     * @param elementHash the elementHash to set 
    165165     */ 
    166     public void setElementHash(int elementHash) { 
     166    public void setElementHash(String elementHash) { 
    167167        this.elementHash = elementHash; 
    168168    } 
Note: See TracChangeset for help on using the changeset viewer.