Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMarkupViewer and HyperlinkDetector
https://www.eclipse.org/forums/index.php/mv/msg/19552/62739/#msg_62739
how to create a HyperlinkDetector for MarkupViewer?
Thanks!
Yau.]]>yaumunlam 2008-12-04T08:46:34-00:00Re: MarkupViewer and HyperlinkDetector
https://www.eclipse.org/forums/index.php/mv/msg/19552/595232/#msg_595232
> how to create a HyperlinkDetector for MarkupViewer?
If you get the latest WikiText build either from the Mylyn weekly
incubator update site or from CVS you'll find the WikiText Developer
Guide (in Eclipse it's under the Help table of contents, nested within
the Mylyn top-level heading). The guide gives detail about this and
other development questions. To quote the documentation:
MarkupViewerConfiguration configuration = new
MarkupViewerConfiguration(viewer);
viewer.configure(configuration);
viewer.getTextWidget().setEditable(false);
viewer.setMarkup(markup);
The MarkupViewerConfiguration properly configures the hyperlink detector.
You can also take a look at the class
org.eclipse.mylyn.wikitext.tests.AbstractTestApplication which is in the
org.eclipse.mylyn.wikitext.tests project in CVS]]>David Green2008-12-04T19:51:13-00:00Re: MarkupViewer and HyperlinkDetector
https://www.eclipse.org/forums/index.php/mv/msg/19552/62785/#msg_62785
> how to create a HyperlinkDetector for MarkupViewer?
If you get the latest WikiText build either from the Mylyn weekly
incubator update site or from CVS you'll find the WikiText Developer
Guide (in Eclipse it's under the Help table of contents, nested within
the Mylyn top-level heading). The guide gives detail about this and
other development questions. To quote the documentation:
MarkupViewerConfiguration configuration = new
MarkupViewerConfiguration(viewer);
viewer.configure(configuration);
viewer.getTextWidget().setEditable(false);
viewer.setMarkup(markup);
The MarkupViewerConfiguration properly configures the hyperlink detector.
You can also take a look at the class
org.eclipse.mylyn.wikitext.tests.AbstractTestApplication which is in the
org.eclipse.mylyn.wikitext.tests project in CVS]]>David Green2008-12-04T19:51:13-00:00