mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 07:15:39 +02:00
Fix PR 52138
This commit is contained in:
parent
ba9fc2e462
commit
d3890d72b5
2 changed files with 18 additions and 0 deletions
|
@ -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
|
2004-02-24 Alain Magloire
|
||||||
|
|
||||||
Fix for PR 52562 From Alex Chapiro
|
Fix for PR 52562 From Alex Chapiro
|
||||||
|
|
|
@ -75,4 +75,16 @@ public class FileStorage extends PlatformObject implements IStorage {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return path.toOSString();
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue