Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Wright2003-07-31 15:43:25 +0000
committerDarin Wright2003-07-31 15:43:25 +0000
commit3fb0e99be790718990b7ef99b28450eab4c2cab1 (patch)
treeef71aa876ee528417457d687d87a6cc4f28377e2 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/InstructionPointerContext.java
parented443befd6d71b8838cdaf49221516c41d9a811b (diff)
downloadeclipse.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.java21
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) {

Back to the top