Ignore:
Timestamp:
09/03/12 09:14:35 (12 years ago)
Author:
pharms
Message:
  • handle element hashes as int again and simply corrected parsing
File:
1 edited

Legend:

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

    r736 r743  
    4646     * </p> 
    4747     */ 
    48     private String elementHash = "-1"; 
     48    private int elementHash = -1; 
    4949 
    5050    /** 
     
    5353     * </p> 
    5454     */ 
    55     private List<String> formerElementHashes = new ArrayList<String>(); 
     55    private List<Integer> formerElementHashes = new ArrayList<Integer>(); 
    5656 
    5757    /* (non-Javadoc) 
     
    8787        // the same, then similarity is given. Therefore these are the first two comparisons 
    8888         
    89         if (elementHash.equals(otherSpec.elementHash)) { 
     89        if (elementHash == otherSpec.elementHash) { 
    9090            return true; 
    9191        } 
     
    163163            ((type == otherSpec.type) || ((type != null) && (type.equals(otherSpec.type)))) && 
    164164            ((icon == otherSpec.icon) || ((icon != null) && (icon.equals(otherSpec.icon)))) && 
    165             (index == otherSpec.index) && (elementHash.equals(otherSpec.elementHash)); 
     165            (index == otherSpec.index) && (elementHash == otherSpec.elementHash); 
    166166    } 
    167167 
     
    233233     * @return the elementHash 
    234234     */ 
    235     public String getElementHash() { 
     235    public int getElementHash() { 
    236236        return elementHash; 
    237237    } 
     
    275275     * @param elementHash the elementHash to set 
    276276     */ 
    277     public void setElementHash(String newElementHash) { 
    278         if (!this.elementHash.equals("-1") && 
     277    public void setElementHash(int newElementHash) { 
     278        if ((this.elementHash > -1) && 
    279279            !this.formerElementHashes.contains(this.elementHash)) 
    280280        { 
     
    294294    void update(JFCGUIElementSpec other) { 
    295295        if (other != this) { 
    296             for (String formerElementHash : other.formerElementHashes) { 
     296            for (int formerElementHash : other.formerElementHashes) { 
    297297                setElementHash(formerElementHash); 
    298298            } 
Note: See TracChangeset for help on using the changeset viewer.