Search in sources :

Example 1 with AnnotationHyperlinkDetector

use of org.eclipse.mylyn.internal.wikitext.ui.viewer.AnnotationHyperlinkDetector in project mylyn.docs by eclipse.

the class HtmlViewerConfiguration method createCustomHyperlinkDetectors.

@Override
protected List<IHyperlinkDetector> createCustomHyperlinkDetectors(ISourceViewer sourceViewer) {
    List<IHyperlinkDetector> detectors = new ArrayList<>(1);
    AnnotationHyperlinkDetector annotationHyperlinkDetector = createAnnotationHyperlinkDetector();
    sourceViewer.getTextWidget().setData(AnnotationHyperlinkDetector.class.getName(), annotationHyperlinkDetector);
    detectors.add(annotationHyperlinkDetector);
    return detectors;
}
Also used : IHyperlinkDetector(org.eclipse.jface.text.hyperlink.IHyperlinkDetector) ArrayList(java.util.ArrayList) AnnotationHyperlinkDetector(org.eclipse.mylyn.internal.wikitext.ui.viewer.AnnotationHyperlinkDetector)

Aggregations

ArrayList (java.util.ArrayList)1 IHyperlinkDetector (org.eclipse.jface.text.hyperlink.IHyperlinkDetector)1 AnnotationHyperlinkDetector (org.eclipse.mylyn.internal.wikitext.ui.viewer.AnnotationHyperlinkDetector)1