Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditorInput.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditorInput.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditorInput.java
index 267f2491a72..de556ccb452 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditorInput.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/sourcelookup/CSourceNotFoundEditorInput.java
@@ -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);
+ }
+
}

Back to the top