1 11 package org.eclipse.debug.internal.ui; 12 13 14 import org.eclipse.debug.core.model.IStackFrame; 15 import org.eclipse.jface.text.source.Annotation; 16 17 20 public class DynamicInstructionPointerAnnotation extends Annotation { 21 22 26 private IStackFrame fStackFrame; 27 28 34 public DynamicInstructionPointerAnnotation(IStackFrame frame, String markerAnnotationSpecificationId, String text) { 35 super(markerAnnotationSpecificationId, false, text); 36 fStackFrame = frame; 37 } 38 39 42 public boolean equals(Object other) { 43 if (other instanceof DynamicInstructionPointerAnnotation) { 44 return getStackFrame().equals(((DynamicInstructionPointerAnnotation)other).getStackFrame()); 45 } 46 return false; 47 } 48 49 52 public int hashCode() { 53 return getStackFrame().hashCode(); 54 } 55 56 61 private IStackFrame getStackFrame() { 62 return fStackFrame; 63 } 64 65 } 66 | Popular Tags |