diff options
author | Darin Wright | 2003-07-31 15:43:25 +0000 |
---|---|---|
committer | Darin Wright | 2003-07-31 15:43:25 +0000 |
commit | 3fb0e99be790718990b7ef99b28450eab4c2cab1 (patch) | |
tree | ef71aa876ee528417457d687d87a6cc4f28377e2 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java | |
parent | ed443befd6d71b8838cdaf49221516c41d9a811b (diff) | |
download | eclipse.platform.debug-3fb0e99be790718990b7ef99b28450eab4c2cab1.tar.gz eclipse.platform.debug-3fb0e99be790718990b7ef99b28450eab4c2cab1.tar.xz eclipse.platform.debug-3fb0e99be790718990b7ef99b28450eab4c2cab1.zip |
code cleanup
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 | 21 |
1 files changed, 3 insertions, 18 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 2d032b706..5d702d361 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 @@ -11,7 +11,6 @@ package org.eclipse.debug.internal.ui; -import org.eclipse.debug.core.model.IStackFrame; import org.eclipse.ui.texteditor.ITextEditor; /** @@ -22,11 +21,6 @@ import org.eclipse.ui.texteditor.ITextEditor; public class InstructionPointerContext { /** - * The stack frame for this context. - */ - private IStackFrame fStackFrame; - - /** * The text editor for this context. */ private ITextEditor fTextEditor; @@ -36,8 +30,7 @@ public class InstructionPointerContext { */ private InstructionPointerAnnotation fAnnotation; - public InstructionPointerContext(IStackFrame stackFrame, ITextEditor textEditor, InstructionPointerAnnotation annotation) { - setStackFrame(stackFrame); + public InstructionPointerContext(ITextEditor textEditor, InstructionPointerAnnotation annotation) { setTextEditor(textEditor); setAnnotation(annotation); } @@ -48,7 +41,7 @@ public class InstructionPointerContext { public boolean equals(Object other) { if (other instanceof InstructionPointerContext) { InstructionPointerContext otherContext = (InstructionPointerContext) other; - return getStackFrame().equals(otherContext.getStackFrame()); + return getAnnotation().equals(otherContext.getAnnotation()); } return false; } @@ -57,15 +50,7 @@ public class InstructionPointerContext { * @see java.lang.Object#hashCode() */ public int hashCode() { - return getStackFrame().hashCode(); - } - - private void setStackFrame(IStackFrame stackFrame) { - fStackFrame = stackFrame; - } - - public IStackFrame getStackFrame() { - return fStackFrame; + return getAnnotation().hashCode(); } private void setTextEditor(ITextEditor textEditor) { |