|
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)
Initialize with the default font preference keys |
|
MarkupSourceViewerConfiguration(IPreferenceStore preferenceStore,
String textFontPreference,
String monospaceFontPreference)
|
Method Summary | |
---|---|
protected IContentAssistProcessor[] |
createContentAssistProcessors()
subclasses may override this method to create additional content assist processors. |
protected List<IHyperlinkDetector> |
createCustomHyperlinkDetectors(ISourceViewer sourceViewer)
Provide custom hyperlink detectors. |
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 . |
String |
getFontPreference()
the font preference key for the text font |
ITokenScanner |
getMarkupScanner()
|
String |
getMonospaceFontPreference()
the monospace font preference key for the text font |
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 |
initializeDefaultFonts()
Initialize default fonts. |
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 |
setFontPreference(String textFontPreference)
the font preference key for the text font |
void |
setMarkupLanguage(MarkupLanguage markupLanguage)
Set the markup language of the configuration. |
void |
setMonospaceFontPreference(String monospaceFontPreference)
the monospace font preference key for the text font |
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, 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, String textFontPreference, String monospaceFontPreference)
preferenceStore
- fontPreference
- the preference key of the text fontmonospaceFontPreference
- the preference key of the monospace text fontinitializeDefaultFonts()
public MarkupSourceViewerConfiguration(IPreferenceStore preferenceStore)
Method Detail |
---|
protected List<IHyperlinkDetector> createCustomHyperlinkDetectors(ISourceViewer sourceViewer)
AbstractTextSourceViewerConfiguration
createCustomHyperlinkDetectors
in class AbstractTextSourceViewerConfiguration
public void initializeDefaultFonts()
getFontPreference()
,
getMonospaceFontPreference()
public String getFontPreference()
initializeDefaultFonts()
public void setFontPreference(String textFontPreference)
initializeDefaultFonts()
public String getMonospaceFontPreference()
initializeDefaultFonts()
public void setMonospaceFontPreference(String monospaceFontPreference)
initializeDefaultFonts()
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
. Note that if a preference store is used
then setFontPreference(String)
should be used instead.
public Font getDefaultMonospaceFont()
scanner
.
public void setDefaultMonospaceFont(Font defaultMonospaceFont)
scanner
. Note that if a
preference store is used then setMonospaceFontPreference(String)
should be used instead.
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 |