Changeset 600 for trunk/quest-plugin-jfc/src/main
- Timestamp:
- 08/23/12 13:42:35 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/quest-plugin-jfc/src/main/java/de/ugoe/cs/quest/plugin/jfc/guimodel/JFCGUIElementSpec.java
r589 r600 60 60 boolean hashEqual = CollectionUtils.containsAny(elementHash, otherSpec.elementHash); 61 61 62 if (type.equals("Class") ) {62 if (type.equals("Class") ) { 63 63 retVal = type.equals(otherSpec.type) && (titleEqual || hashEqual); 64 } else { 65 retVal = type.equals(otherSpec.type) && index==otherSpec.index && (titleEqual || hashEqual); 64 } 65 else { 66 retVal = type.equals(otherSpec.type) && index==otherSpec.index && 67 (titleEqual || hashEqual); 66 68 } 67 69 … … 91 93 ((icon == otherSpec.icon) || ((icon != null) && (icon.equals(otherSpec.icon)))) && 92 94 (index == otherSpec.index) && (elementHash == otherSpec.elementHash); 95 } 96 97 /* (non-Javadoc) 98 * @see java.lang.Object#hashCode() 99 */ 100 @Override 101 public int hashCode() { 102 return (name + type + icon + index + elementHash).hashCode(); 93 103 } 94 104
Note: See TracChangeset
for help on using the changeset viewer.