Mylyn WikiText

org.eclipse.mylyn.wikitext.ui.viewer
Class AbstractTextSourceViewerConfiguration

java.lang.Object
  extended by TextSourceViewerConfiguration
      extended by 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

Nested Class Summary
static interface AbstractTextSourceViewerConfiguration.HyperlinkDetectorDescriptorFilter
          a filter for filtering hyperlink descriptors
 
Field Summary
protected  boolean markupHyperlinksFirst
          indicate if markup hyperlinks should be detected before other types of hyperlinks.
 
Constructor Summary
AbstractTextSourceViewerConfiguration()
           
AbstractTextSourceViewerConfiguration(IPreferenceStore preferenceStore)
           
 
Method Summary
 void addHyperlinkDetector(IHyperlinkDetector detector)
           
 void addHyperlinkDetectorDescriptorFilter(AbstractTextSourceViewerConfiguration.HyperlinkDetectorDescriptorFilter filter)
           
protected  List<IHyperlinkDetector> createCustomHyperlinkDetectors(ISourceViewer sourceViewer)
          Provide custom hyperlink detectors.
 IHyperlinkDetector[] getHyperlinkDetectors(ISourceViewer sourceViewer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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.

Constructor Detail

AbstractTextSourceViewerConfiguration

public AbstractTextSourceViewerConfiguration()

AbstractTextSourceViewerConfiguration

public AbstractTextSourceViewerConfiguration(IPreferenceStore preferenceStore)
Method Detail

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)

Mylyn WikiText

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