|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.text.source.SourceViewerConfiguration org.eclipse.ui.editors.text.TextSourceViewerConfiguration org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration
public class XtextSourceViewerConfiguration
Field Summary |
---|
Fields inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
---|
fPreferenceStore |
Constructor Summary | |
---|---|
XtextSourceViewerConfiguration()
|
Method Summary | |
---|---|
org.eclipse.jface.text.source.IAnnotationHover |
getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the annotation hover which will provide the information to be shown in a hover popup window when requested for the given source viewer. |
org.eclipse.jface.text.IAutoEditStrategy[] |
getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Returns the auto edit strategies ready to be used with the given source viewer when manipulating text of the given content type. |
java.lang.String[] |
getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns all configured content types for the given source viewer. |
org.eclipse.jface.text.contentassist.IContentAssistant |
getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the content assistant ready to be used with the given source viewer. |
org.eclipse.jface.text.formatter.IContentFormatter |
getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the content formatter ready to be used with the given source viewer. |
java.lang.String[] |
getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Returns the default prefixes to be used by the line-prefix operation in the given source viewer for text of the given content type. |
protected java.lang.String |
getDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.ITextDoubleClickStrategy |
getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Returns the double-click strategy ready to be used in this viewer when double clicking onto text of the given content type. |
org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] |
getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the hyperlink detectors which be used to detect hyperlinks in the given source viewer. |
org.eclipse.jface.text.presentation.IPresentationReconciler |
getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the presentation reconciler ready to be used with the given source viewer. |
com.google.inject.Provider<XtextPresentationReconciler> |
getPresentationReconcilerProvider()
|
org.eclipse.jface.text.quickassist.IQuickAssistAssistant |
getQuickAssistAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the quick assist assistant ready to be used with the given source viewer. |
org.eclipse.jface.text.reconciler.IReconciler |
getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the reconciler ready to be used with the given source viewer. |
ISingleLineCommentHelper |
getSingleLineCommentHelper()
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
Returns the text hover which will provide the information to be shown in a text hover popup window when requested for the given source viewer and the given content type. |
void |
setPresentationReconcilerProvider(com.google.inject.Provider<XtextPresentationReconciler> presentationReconcilerProvider)
|
void |
setSingleLineCommentHelper(ISingleLineCommentHelper singleLineCommentHelper)
|
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
---|
computeStateMask, findLocalizedModifier, getConfiguredTextHoverStateMasks, getHyperlinkDetectorTargets, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixes, getOverviewRulerAnnotationHover, getRegisteredHyperlinkDetectors, getTabWidth, getUndoManager, isShowInOverviewRuler, isShowInVerticalRuler, isShownInText |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
---|
getAutoIndentStrategy, getConfiguredDocumentPartitioning, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getTextHover |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XtextSourceViewerConfiguration()
Method Detail |
---|
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
null
.
getAnnotationHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if no hover support should be installedpublic org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
org.eclipse.jface.text.source.SourceViewerConfiguration
null
.
getTextHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configurationcontentType
- the content type
null
if no hover support should be installedpublic org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
null
.
getContentAssistant
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if content assist should not be supportedpublic org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.ui.editors.text.TextSourceViewerConfiguration
This implementation currently returns a MonoReconciler
which
is responsible for spell checking. In the future a different reconciler
taking over more responsibilities might be returned.
getReconciler
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if reconciling should not be supportedSourceViewerConfiguration.getReconciler(org.eclipse.jface.text.source.ISourceViewer)
public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
getPresentationReconciler
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer
null
if presentation reconciling should not be supportedpublic java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
new String[] { IDocument.DEFAULT_CONTENT_TYPE }
.
getConfiguredContentTypes
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
protected java.lang.String getDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
public org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
getHyperlinkDetectors
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if no hyperlink support should be installedpublic org.eclipse.jface.text.quickassist.IQuickAssistAssistant getQuickAssistAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
null
.
getQuickAssistAssistant
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if quick assist should not be supportedpublic org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
org.eclipse.jface.text.source.SourceViewerConfiguration
null
.
getContentFormatter
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configuration
null
if formatting should not be supportedpublic java.lang.String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
org.eclipse.jface.text.source.SourceViewerConfiguration
null
.
getDefaultPrefixes
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configurationcontentType
- the content type for which the prefix is applicable
null
if the prefix operation should not be supportedpublic void setSingleLineCommentHelper(ISingleLineCommentHelper singleLineCommentHelper)
public ISingleLineCommentHelper getSingleLineCommentHelper()
public void setPresentationReconcilerProvider(com.google.inject.Provider<XtextPresentationReconciler> presentationReconcilerProvider)
public com.google.inject.Provider<XtextPresentationReconciler> getPresentationReconcilerProvider()
public org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
org.eclipse.jface.text.source.SourceViewerConfiguration
SourceViewerConfiguration.getAutoIndentStrategy(ISourceViewer, String)
.
getAutoEditStrategies
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configurationcontentType
- the content type for which the strategies are applicable
null
if automatic editing is not to be enabledpublic org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
org.eclipse.jface.text.source.SourceViewerConfiguration
DefaultTextDoubleClickStrategy
.
getDoubleClickStrategy
in class org.eclipse.jface.text.source.SourceViewerConfiguration
sourceViewer
- the source viewer to be configured by this configurationcontentType
- the content type for which the strategy is applicable
null
if double clicking should not be supported
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |