Index: /trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElementSpec.java
===================================================================
--- /trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElementSpec.java	(revision 599)
+++ /trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElementSpec.java	(revision 600)
@@ -60,8 +60,10 @@
         boolean hashEqual = CollectionUtils.containsAny(elementHash, otherSpec.elementHash);
         
-        if( type.equals("Class") ) {
+        if (type.equals("Class") ) {
             retVal = type.equals(otherSpec.type) && (titleEqual || hashEqual);
-        } else {
-            retVal = type.equals(otherSpec.type) && index==otherSpec.index && (titleEqual || hashEqual);
+        }
+        else {
+            retVal = type.equals(otherSpec.type) && index==otherSpec.index &&
+                (titleEqual || hashEqual);
         }
         
@@ -91,4 +93,12 @@
             ((icon == otherSpec.icon) || ((icon != null) && (icon.equals(otherSpec.icon)))) &&
             (index == otherSpec.index) && (elementHash == otherSpec.elementHash);
+    }
+
+    /* (non-Javadoc)
+     * @see java.lang.Object#hashCode()
+     */
+    @Override
+    public int hashCode() {
+        return (name + type + icon + index + elementHash).hashCode();
     }
 
