diff options
author | Darin Wright | 2007-05-07 15:44:58 +0000 |
---|---|---|
committer | Darin Wright | 2007-05-07 15:44:58 +0000 |
commit | bb1f0defd3a53f590be1126a03175f098eaa4fd2 (patch) | |
tree | e312ebfe2138c292a42bdcc04e6b65dbedf57005 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java | |
parent | f9c3f3b6af2491566cfae4cb49bfd3d7890e05c3 (diff) | |
download | eclipse.platform.debug-bb1f0defd3a53f590be1126a03175f098eaa4fd2.tar.gz eclipse.platform.debug-bb1f0defd3a53f590be1126a03175f098eaa4fd2.tar.xz eclipse.platform.debug-bb1f0defd3a53f590be1126a03175f098eaa4fd2.zip |
Bug 184959 instruction pointer remains when added > 1 editor
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java index 255b6cebc..e7ca30e7f 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java @@ -55,7 +55,9 @@ public class InstructionPointerContext { public boolean equals(Object other) { if (other instanceof InstructionPointerContext) { InstructionPointerContext otherContext = (InstructionPointerContext) other; - return getAnnotation().equals(otherContext.getAnnotation()); + if (getAnnotation().equals(otherContext.getAnnotation())){ + return getEditor().equals(otherContext.getEditor()); + } } return false; } @@ -64,7 +66,7 @@ public class InstructionPointerContext { * @see java.lang.Object#hashCode() */ public int hashCode() { - return getAnnotation().hashCode(); + return getAnnotation().hashCode() + getEditor().hashCode(); } /** |