1 11 package org.eclipse.debug.internal.ui.views.console; 12 13 14 import org.eclipse.debug.internal.ui.DebugUIPlugin; 15 import org.eclipse.debug.ui.console.IConsoleHyperlink; 16 import org.eclipse.jface.text.Position; 17 18 20 public class HyperlinkPosition extends Position { 21 22 public static final String HYPER_LINK_CATEGORY = DebugUIPlugin.getUniqueIdentifier() + ".HYPER_LINK"; 24 private IConsoleHyperlink fLink = null; 25 26 29 public HyperlinkPosition(IConsoleHyperlink link, int offset, int length) { 30 super(offset, length); 31 fLink = link; 32 } 33 34 public IConsoleHyperlink getHyperLink() { 35 return fLink; 36 } 37 38 41 public boolean equals(Object arg) { 42 return arg instanceof HyperlinkPosition && super.equals(arg) && getHyperLink().equals(((HyperlinkPosition)arg).getHyperLink()); 43 } 44 45 48 public int hashCode() { 49 return super.hashCode() + getHyperLink().hashCode(); 50 } 51 52 } 53 | Popular Tags |