1 11 package org.eclipse.ant.internal.ui.editor; 12 13 import org.eclipse.jface.text.IRegion; 14 import org.eclipse.jface.text.hyperlink.IHyperlink; 15 16 public class AntElementHyperlink implements IHyperlink { 17 18 private IRegion fRegion= null; 19 private Object fLinkTarget= null; 20 private AntEditor fEditor= null; 21 22 public AntElementHyperlink(AntEditor editor, IRegion region, Object linkTarget) { 23 24 fRegion= region; 25 fLinkTarget= linkTarget; 26 fEditor= editor; 27 } 28 29 32 public IRegion getHyperlinkRegion() { 33 return fRegion; 34 } 35 36 39 public String getTypeLabel() { 40 return null; 41 } 42 43 46 public String getHyperlinkText() { 47 return null; 48 } 49 50 53 public void open() { 54 fEditor.openTarget(fLinkTarget); 55 } 56 } 57 | Popular Tags |