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:
parent
276424d6cc
commit
72dc668810
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue