Ignore:
Timestamp:
08/30/12 14:08:12 (12 years ago)
Author:
pharms
Message:

improved comparison of GUI elements

File:
1 edited

Legend:

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

    r681 r714  
    6969     * @return the hashCode 
    7070     */ 
    71     String getElementHash() { 
     71    int getElementHash() { 
    7272        return specification.getElementHash(); 
    7373    } 
     
    8080    @Override 
    8181    public void updateSpecification(IGUIElementSpec updateSpecification) { 
    82         if( updateSpecification instanceof JFCGUIElementSpec ) { 
    83             specification.setName(((JFCGUIElementSpec) updateSpecification).getName()); 
    84             specification.setElementHash(((JFCGUIElementSpec) updateSpecification).getElementHash()); 
     82        if (updateSpecification instanceof JFCGUIElementSpec) { 
     83            specification.update(((JFCGUIElementSpec) updateSpecification)); 
    8584        } 
    8685    } 
     
    107106    @Override 
    108107    public String toString() { 
    109         String str = getElementDescriptor() + "(" + getName() + ", " + getElementHash() + "," + getIcon() + "," + getIndex() +")"; 
     108        String str = getElementDescriptor() + "(" + getName() + "," + getElementHash() + "," + 
     109            getIcon() + "," + getIndex() +")"; 
    110110        return str; 
    111111    } 
Note: See TracChangeset for help on using the changeset viewer.