mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-06 17:26:01 +02:00
Prevent opening a new editor each time.
This commit is contained in:
parent
f71f3c7fc6
commit
c7d41662a4
1 changed files with 9 additions and 0 deletions
|
@ -27,4 +27,13 @@ public class CSourceNotFoundEditorInput extends CommonSourceNotFoundEditorInput
|
|||
return super.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean equals(Object other) {
|
||||
if (other instanceof CSourceNotFoundEditorInput)
|
||||
{
|
||||
return super.equals(other) || (this.getName().equals(((CSourceNotFoundEditorInput) other).getName()));
|
||||
}
|
||||
return super.equals(other);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue