org.eclipse.cdt.internal.ui.text
Class SimpleCSourceViewerConfiguration
java.lang.Object
org.eclipse.jface.text.source.SourceViewerConfiguration
org.eclipse.ui.editors.text.TextSourceViewerConfiguration
org.eclipse.cdt.internal.ui.text.CSourceViewerConfiguration
org.eclipse.cdt.internal.ui.text.SimpleCSourceViewerConfiguration
public class SimpleCSourceViewerConfiguration
- extends CSourceViewerConfiguration
A simple C source viewer configuration.
This simple source viewer configuration basically provides syntax coloring
and disables all other features like code assist, quick outlines, hyperlinking, etc.
Constructor Summary |
SimpleCSourceViewerConfiguration(IColorManager colorManager,
org.eclipse.jface.preference.IPreferenceStore preferenceStore,
org.eclipse.ui.texteditor.ITextEditor editor,
java.lang.String partitioning,
boolean configureFormatter)
Creates a new C source viewer configuration for viewers in the given editor
using the given preference store, the color manager and the specified document partitioning. |
Method Summary |
org.eclipse.jface.text.source.IAnnotationHover |
getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.IAutoEditStrategy[] |
getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
int[] |
getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
org.eclipse.jface.text.formatter.IContentFormatter |
getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] |
getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.IInformationControlCreator |
getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.information.IInformationPresenter |
getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.information.IInformationPresenter |
getOutlinePresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Creates outline presenter. |
org.eclipse.jface.text.source.IAnnotationHover |
getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
|
org.eclipse.jface.text.ITextHover |
getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType,
int stateMask)
|
Methods inherited from class org.eclipse.cdt.internal.ui.text.CSourceViewerConfiguration |
adaptToPreferenceChange, affectsBehavior, affectsTextPresentation, getConfiguredContentTypes, getConfiguredDocumentPartitioning, getContentAssistant, getDefaultPrefixes, getDoubleClickStrategy, getEditor, getHierarchyPresenter, getIndentPrefixes, getInformationControlCreator, getPresentationReconciler, getReconciler, getTabWidth, handlePropertyChangeEvent, resetScanners |
Methods inherited from class org.eclipse.ui.editors.text.TextSourceViewerConfiguration |
getHyperlinkPresenter, getHyperlinkStateMask, getUndoManager |
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration |
getAutoIndentStrategy, getQuickAssistAssistant |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleCSourceViewerConfiguration
public SimpleCSourceViewerConfiguration(IColorManager colorManager,
org.eclipse.jface.preference.IPreferenceStore preferenceStore,
org.eclipse.ui.texteditor.ITextEditor editor,
java.lang.String partitioning,
boolean configureFormatter)
- Creates a new C source viewer configuration for viewers in the given editor
using the given preference store, the color manager and the specified document partitioning.
- Parameters:
colorManager
- the color managerpreferenceStore
- the preference store, can be read-onlyeditor
- the editor in which the configured viewer(s) will reside, or null
if nonepartitioning
- the document partitioning for this configuration, or null
for the default partitioningconfigureFormatter
- true
if a content formatter should be configured
getAutoEditStrategies
public org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
- Overrides:
getAutoEditStrategies
in class CSourceViewerConfiguration
getAnnotationHover
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getAnnotationHover
in class CSourceViewerConfiguration
- See Also:
SourceViewerConfiguration.getAnnotationHover(ISourceViewer)
getOverviewRulerAnnotationHover
public org.eclipse.jface.text.source.IAnnotationHover getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getOverviewRulerAnnotationHover
in class org.eclipse.ui.editors.text.TextSourceViewerConfiguration
getConfiguredTextHoverStateMasks
public int[] getConfiguredTextHoverStateMasks(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
- Overrides:
getConfiguredTextHoverStateMasks
in class CSourceViewerConfiguration
getTextHover
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType,
int stateMask)
- Overrides:
getTextHover
in class CSourceViewerConfiguration
getTextHover
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
java.lang.String contentType)
- Overrides:
getTextHover
in class CSourceViewerConfiguration
getContentFormatter
public org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getContentFormatter
in class CSourceViewerConfiguration
- See Also:
SourceViewerConfiguration.getContentFormatter(ISourceViewer)
getInformationControlCreator
public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getInformationControlCreator
in class CSourceViewerConfiguration
getInformationPresenter
public org.eclipse.jface.text.information.IInformationPresenter getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getInformationPresenter
in class CSourceViewerConfiguration
getHyperlinkDetectors
public org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Overrides:
getHyperlinkDetectors
in class CSourceViewerConfiguration
getOutlinePresenter
public org.eclipse.jface.text.information.IInformationPresenter getOutlinePresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
- Description copied from class:
CSourceViewerConfiguration
- Creates outline presenter.
- Overrides:
getOutlinePresenter
in class CSourceViewerConfiguration
- Returns:
- Presenter with outline view.