|
Mylyn WikiText | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTextSourceViewerConfiguration
org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration
org.eclipse.mylyn.wikitext.ui.editor.MarkupSourceViewerConfiguration
public class MarkupSourceViewerConfiguration
A source viewer configuration suitable for installing on a markup editor
Nested Class Summary |
---|
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 | |
---|---|
MarkupSourceViewerConfiguration(IPreferenceStore preferenceStore)
|
Method Summary | |
---|---|
protected IContentAssistProcessor[] |
createContentAssistProcessors()
subclasses may override this method to create additional content assist processors. |
String[] |
getConfiguredContentTypes(ISourceViewer sourceViewer)
|
IContentAssistant |
getContentAssistant(ISourceViewer sourceViewer)
|
Font |
getDefaultFont()
the default font, as used by the scanner . |
Font |
getDefaultMonospaceFont()
the default font for monospace text, as used by the scanner . |
ITokenScanner |
getMarkupScanner()
|
protected IInformationControlCreator |
getOutlineInformationControlCreator()
|
IInformationPresenter |
getOutlineInformationPresenter(ISourceViewer sourceViewer)
provide access to an information presenter that can be used to pop-up a quick outline. |
IPresentationReconciler |
getPresentationReconciler(ISourceViewer sourceViewer)
|
IReconciler |
getReconciler(ISourceViewer sourceViewer)
|
IShowInTarget |
getShowInTarget()
provide a show in target to connect the quick-outline popup with the editor. |
ITextHover |
getTextHover(ISourceViewer sourceViewer,
String contentType)
|
void |
setDefaultFont(Font defaultFont)
the default font, as used by the scanner . |
void |
setDefaultMonospaceFont(Font defaultMonospaceFont)
the default font for monospace text, as used by the scanner . |
void |
setFile(IFile file)
Set the file being edited. |
void |
setMarkupLanguage(MarkupLanguage markupLanguage)
Set the markup language of the configuration. |
void |
setOutline(OutlineItem outlineModel)
Set the outline on this configuration. |
void |
setShowInTarget(IShowInTarget showInTarget)
provide a show in target to connect the quick-outline popup with the editor. |
Methods inherited from class org.eclipse.mylyn.wikitext.ui.viewer.AbstractTextSourceViewerConfiguration |
---|
addHyperlinkDetector, addHyperlinkDetectorDescriptorFilter, createCustomHyperlinkDetectors, getHyperlinkDetectors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MarkupSourceViewerConfiguration(IPreferenceStore preferenceStore)
Method Detail |
---|
public ITokenScanner getMarkupScanner()
public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
public IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
protected IContentAssistProcessor[] createContentAssistProcessors()
public void setMarkupLanguage(MarkupLanguage markupLanguage)
markupLanguage
- the markup languagepublic IReconciler getReconciler(ISourceViewer sourceViewer)
public void setFile(IFile file)
file
- the file, which may be null.public ITextHover getTextHover(ISourceViewer sourceViewer, String contentType)
public IInformationPresenter getOutlineInformationPresenter(ISourceViewer sourceViewer)
public void configure(SourceViewerConfiguration configuration) { super.configure(configuration); if (configuration instanceof MarkupSourceViewerConfiguration) { outlinePresenter = ((MarkupSourceViewerConfiguration) configuration).getOutlineInformationPresenter(this); outlinePresenter.install(this); } }
sourceViewer
- the source viewer for which the presenter should be created
public String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
protected IInformationControlCreator getOutlineInformationControlCreator()
public void setOutline(OutlineItem outlineModel)
outlineModel
- public Font getDefaultFont()
scanner
.
public void setDefaultFont(Font defaultFont)
scanner
.
public Font getDefaultMonospaceFont()
scanner
.
public void setDefaultMonospaceFont(Font defaultMonospaceFont)
scanner
.
public IShowInTarget getShowInTarget()
show in target
to connect the quick-outline popup with the editor.
public void setShowInTarget(IShowInTarget showInTarget)
show in target
to connect the quick-outline popup with the editor.
|
Mylyn WikiText | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |