diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java index 9fd808ccc1b..8483537db3f 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/util/ExternalEditorInput.java @@ -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; }