1
0
Fork 0
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:
Ken Ryall 2010-04-19 21:28:24 +00:00
parent f71f3c7fc6
commit c7d41662a4

View file

@ -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);
}
}