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

fixed problem where multiple editors could be opened for the same external file.

This commit is contained in:
Warren Paul 2008-10-28 23:10:24 +00:00
parent 276424d6cc
commit 72dc668810

View file

@ -53,8 +53,9 @@ public class ExternalEditorInput implements ITranslationUnitEditorInput, IPersis
if (!(obj instanceof IStorageEditorInput))
return false;
IStorageEditorInput other = (IStorageEditorInput)obj;
// externalFile storage type may not be the same so compare the paths
try {
return externalFile.equals(other.getStorage());
return externalFile.getFullPath().equals(other.getStorage().getFullPath());
} catch (CoreException exc) {
return false;
}