1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fix PR 52138

This commit is contained in:
Alain Magloire 2004-02-25 20:39:42 +00:00
parent ba9fc2e462
commit d3890d72b5
2 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2004-02-25 Alain Magloire
Path from Chris Wiebe to deal with PR 52128
* src/org/eclipse/cdt/core/resources/FileStorage.java
2004-02-24 Alain Magloire
Fix for PR 52562 From Alex Chapiro

View file

@ -75,4 +75,16 @@ public class FileStorage extends PlatformObject implements IStorage {
public String toString() {
return path.toOSString();
}
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj instanceof IStorage) {
IPath path= getFullPath();
IPath objPath= ((IStorage)obj).getFullPath();
if (path != null && objPath != null)
return path.equals(objPath);
}
return super.equals(obj);
}
}