org.eclipse.mylyn.wikitext.ui.viewer
Class AbstractTextSourceViewerConfiguration
java.lang.Object
TextSourceViewerConfiguration
org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration
- Direct Known Subclasses:
- HtmlViewerConfiguration, MarkupSourceViewerConfiguration
public abstract class AbstractTextSourceViewerConfiguration
- extends TextSourceViewerConfiguration
Extends the default text source viewer configuration to provide greater configurability and extensibility. Makes it
easy to filter and customize hyperlink detectors.
- Since:
- 1.0
- Author:
- David Green
Field Summary |
protected boolean |
markupHyperlinksFirst
indicate if markup hyperlinks should be detected before other types of hyperlinks. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
markupHyperlinksFirst
protected boolean markupHyperlinksFirst
- indicate if markup hyperlinks should be detected before other types of hyperlinks. This can affect the order in
which the hyperlinks are presented to the user in the case where multiple hyperlinks are detected in the same
region of text. The default is true.
AbstractTextSourceViewerConfiguration
public AbstractTextSourceViewerConfiguration()
AbstractTextSourceViewerConfiguration
public AbstractTextSourceViewerConfiguration(IPreferenceStore preferenceStore)
getHyperlinkDetectors
public IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer)
createCustomHyperlinkDetectors
protected List<IHyperlinkDetector> createCustomHyperlinkDetectors(ISourceViewer sourceViewer)
- Provide custom hyperlink detectors. Subclasses may override, the default implementation provides an empty list.
addHyperlinkDetectorDescriptorFilter
public void addHyperlinkDetectorDescriptorFilter(AbstractTextSourceViewerConfiguration.HyperlinkDetectorDescriptorFilter filter)
addHyperlinkDetector
public void addHyperlinkDetector(IHyperlinkDetector detector)
Copyright © 2007, 2009 David Green and others.
All rights reserved. This program and the accompanying materials
are made available under the terms of the Eclipse Public License v1.0
which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v10.html