1 19 package org.netbeans.modules.retouche.editor.hyperlink; 20 21 import java.text.MessageFormat ; 22 23 import javax.swing.text.Document ; 24 25 import org.netbeans.lib.editor.hyperlink.spi.HyperlinkProvider; 26 27 28 37 public final class GsfHyperlinkProvider implements HyperlinkProvider { 38 private static final int TOKEN_LIMIT = 100; 39 private static MessageFormat mf = null; 40 41 42 public GsfHyperlinkProvider() { 43 } 44 45 public void performClickAction(Document doc, final int offset) { 46 GoToSupport.performGoTo(doc, offset); 47 } 48 49 public boolean isHyperlinkPoint(Document doc, int offset) { 50 return getHyperlinkSpan(doc, offset) != null; 51 } 52 53 public int[] getHyperlinkSpan(Document doc, int offset) { 54 return GoToSupport.getIdentifierSpan(doc, offset); 55 } 56 } 57 | Popular Tags |