org.eclipse.xtend.check.ui.editor
Class CheckSourceViewerConfiguration
java.lang.Object
org.eclipse.jface.text.source.SourceViewerConfiguration
org.eclipse.ui.editors.text.TextSourceViewerConfiguration
org.eclipse.xtend.shared.ui.editor.AbstractXtendXpandSourceViewerConfiguration
org.eclipse.xtend.check.ui.editor.CheckSourceViewerConfiguration
public class CheckSourceViewerConfiguration
- extends AbstractXtendXpandSourceViewerConfiguration
Fields inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
fPreferenceStore |
Method Summary |
protected void |
createContentAssistProcessor(org.eclipse.jface.text.contentassist.ContentAssistant contentAssistant)
|
org.eclipse.jface.text.source.IAnnotationHover |
getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String[] |
getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer aSourceViewer)
Returns all configured content types for the given source viewer. |
protected org.eclipse.jface.text.rules.ITokenScanner |
getContentScanner()
|
org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] |
getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
java.lang.String[] |
getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer aSourceViewer,
java.lang.String aContentType)
Returns the prefixes to be used by the line-shift operation. |
org.eclipse.jface.text.presentation.IPresentationReconciler |
getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer aSourceViewer)
Returns the presentation reconciler ready to be used with the given
source viewer. |
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
void |
refresh()
|
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
computeStateMask, findLocalizedModifier, getConfiguredTextHoverStateMasks, getHyperlinkDetectorTargets, getHyperlinkPresenter, getHyperlinkStateMask, getOverviewRulerAnnotationHover, getQuickAssistAssistant, getRegisteredHyperlinkDetectors, getTabWidth, getUndoManager, isShowInOverviewRuler, isShowInVerticalRuler, isShownInText |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
getAutoEditStrategies, getAutoIndentStrategy, getConfiguredDocumentPartitioning, getContentFormatter, getDefaultPrefixes, getDoubleClickStrategy, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getTextHover |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckSourceViewerConfiguration
public CheckSourceViewerConfiguration(org.eclipse.ui.IEditorPart editor)
getConfiguredContentTypes
public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer aSourceViewer)
- Returns all configured content types for the given source viewer.
- Overrides:
getConfiguredContentTypes
in class org.eclipse.jface.text.source.SourceViewerConfiguration
- Parameters:
sourceViewer
- the source viewer to be configured by this configuration
- Returns:
- all configured content types
createContentAssistProcessor
protected void createContentAssistProcessor(org.eclipse.jface.text.contentassist.ContentAssistant contentAssistant)
- Specified by:
createContentAssistProcessor
in class AbstractXtendXpandSourceViewerConfiguration
getIndentPrefixes
public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer aSourceViewer,
java.lang.String aContentType)
- Returns the prefixes to be used by the line-shift operation. This
implementation always returns new String[] { "\t", " " }.
- Overrides:
getIndentPrefixes
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
- Parameters:
sourceViewer
- the source viewer to be configured by this configurationcontentType
- the content type for which the strategy is applicable
- Returns:
- the prefixes or null if the prefix operation should not be
supported
getPresentationReconciler
public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer aSourceViewer)
- Returns the presentation reconciler ready to be used with the given
source viewer.
- Overrides:
getPresentationReconciler
in class org.eclipse.jface.text.source.SourceViewerConfiguration
- Parameters:
sourceViewer
- the source viewer to be configured by this configuration
- Returns:
- the presentation reconciler or null if presentation reconciling
should not be supported
getContentScanner
protected org.eclipse.jface.text.rules.ITokenScanner getContentScanner()
getAnnotationHover
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getAnnotationHover
in class AbstractXtendXpandSourceViewerConfiguration
- See Also:
TextSourceViewerConfiguration.getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer)
getTextHover
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
- Overrides:
getTextHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
getHyperlinkDetectors
public org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getHyperlinkDetectors
in class AbstractXtendXpandSourceViewerConfiguration
refresh
public void refresh()
- Overrides:
refresh
in class AbstractXtendXpandSourceViewerConfiguration