Mylyn WikiText

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

java.lang.Object
  extended by TextSourceViewerConfiguration
      extended by org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration
          extended by org.eclipse.mylyn.wikitext.ui.viewer.HtmlViewerConfiguration
Direct Known Subclasses:
MarkupViewerConfiguration

public class HtmlViewerConfiguration
extends AbstractTextSourceViewerConfiguration

A configuration for use with a HtmlViewer.

Since:
1.0
Author:
David Green

Nested Class Summary
protected  class HtmlViewerConfiguration.MarkupViewerDamagerRepairer
           
 
Nested classes/interfaces inherited from class org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration
AbstractTextSourceViewerConfiguration.HyperlinkDetectorDescriptorFilter
 
Field Summary
 
Fields inherited from class org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration
markupHyperlinksFirst
 
Constructor Summary
HtmlViewerConfiguration(HtmlViewer viewer)
           
HtmlViewerConfiguration(HtmlViewer viewer, IPreferenceStore preferenceStore)
           
 
Method Summary
protected  AnnotationHyperlinkDetector createAnnotationHyperlinkDetector()
           
protected  List<IHyperlinkDetector> createCustomHyperlinkDetectors(ISourceViewer sourceViewer)
          Provide custom hyperlink detectors.
 IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)
           
 int getHyperlinkStateMask(ISourceViewer sourceViewer)
           
 IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
           
 IReconciler getReconciler(ISourceViewer sourceViewer)
          returns null, since spell check is not needed
 ITextHover getTextHover(ISourceViewer sourceViewer, String contentType)
           
 boolean isDisableHyperlinkModifiers()
          Indicate if hyperlink modifiers are disabled.
 void setDisableHyperlinkModifiers(boolean disableHyperlinkModifiers)
          Indicate if hyperlink modifiers are disabled.
 void setTextPresentation(TextPresentation textPresentation)
           
 
Methods inherited from class org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration
addHyperlinkDetector, addHyperlinkDetectorDescriptorFilter, getHyperlinkDetectors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlViewerConfiguration

public HtmlViewerConfiguration(HtmlViewer viewer)

HtmlViewerConfiguration

public HtmlViewerConfiguration(HtmlViewer viewer,
                               IPreferenceStore preferenceStore)
Method Detail

getPresentationReconciler

public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)

getReconciler

public IReconciler getReconciler(ISourceViewer sourceViewer)
returns null, since spell check is not needed

Since:
1.1

getAnnotationHover

public IAnnotationHover getAnnotationHover(ISourceViewer sourceViewer)

getTextHover

public ITextHover getTextHover(ISourceViewer sourceViewer,
                               String contentType)

createCustomHyperlinkDetectors

protected List<IHyperlinkDetector> createCustomHyperlinkDetectors(ISourceViewer sourceViewer)
Description copied from class: AbstractTextSourceViewerConfiguration
Provide custom hyperlink detectors. Subclasses may override, the default implementation provides an empty list.

Overrides:
createCustomHyperlinkDetectors in class AbstractTextSourceViewerConfiguration

createAnnotationHyperlinkDetector

protected AnnotationHyperlinkDetector createAnnotationHyperlinkDetector()

setTextPresentation

public void setTextPresentation(TextPresentation textPresentation)

getHyperlinkStateMask

public int getHyperlinkStateMask(ISourceViewer sourceViewer)

isDisableHyperlinkModifiers

public boolean isDisableHyperlinkModifiers()
Indicate if hyperlink modifiers are disabled. When disabled (the default) no keyboard modifiers are required to activate hyperlinks when clicking.

See Also:
getHyperlinkStateMask(ISourceViewer)

setDisableHyperlinkModifiers

public void setDisableHyperlinkModifiers(boolean disableHyperlinkModifiers)
Indicate if hyperlink modifiers are disabled. When disabled (the default) no keyboard modifiers are required to activate hyperlinks when clicking.

See Also:
getHyperlinkStateMask(ISourceViewer)

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