Class UnoidlConfiguration
- java.lang.Object
-
- org.eclipse.jface.text.source.SourceViewerConfiguration
-
- org.libreoffice.ide.eclipse.core.editors.idl.UnoidlConfiguration
-
public class UnoidlConfiguration extends org.eclipse.jface.text.source.SourceViewerConfigurationProvides the UNO-IDL editor configuration. In order to fully understand the editor mechanisms, please report to Eclipse plugin developer's guide. Most of the scanners and rules used by this class are defined in the
org.libreoffice.ide.eclipse.core.editors.syntaxpackage.
-
-
Constructor Summary
Constructors Constructor Description UnoidlConfiguration(ColorProvider pColorManager)Default constructor using a color manager.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jface.text.source.IAnnotationHovergetAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)protected UnoidlScannergetCodeScanner()java.lang.String[]getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)protected UnoidlDocScannergetDocScanner()org.eclipse.jface.text.ITextDoubleClickStrategygetDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer pSourceViewer, java.lang.String pContentType)org.eclipse.jface.text.source.IAnnotationHovergetOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)protected UnoidlPreprocessorScannergetPreprocScanner()org.eclipse.jface.text.presentation.IPresentationReconcilergetPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)-
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration
getAutoEditStrategies, getAutoIndentStrategy, getCodeMiningProviders, getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentAssistant, getContentFormatter, getDefaultPrefixes, getHyperlinkDetectors, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixes, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getQuickAssistAssistant, getReconciler, getTabWidth, getTextHover, getTextHover, getUndoManager
-
-
-
-
Constructor Detail
-
UnoidlConfiguration
public UnoidlConfiguration(ColorProvider pColorManager)
Default constructor using a color manager.- Parameters:
pColorManager- the color manager to colorize the syntax elements
-
-
Method Detail
-
getDoubleClickStrategy
public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer pSourceViewer, java.lang.String pContentType)- Overrides:
getDoubleClickStrategyin classorg.eclipse.jface.text.source.SourceViewerConfiguration
-
getAnnotationHover
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
- Overrides:
getAnnotationHoverin classorg.eclipse.jface.text.source.SourceViewerConfiguration
-
getOverviewRulerAnnotationHover
public org.eclipse.jface.text.source.IAnnotationHover getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
- Overrides:
getOverviewRulerAnnotationHoverin classorg.eclipse.jface.text.source.SourceViewerConfiguration
-
getConfiguredContentTypes
public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
- Overrides:
getConfiguredContentTypesin classorg.eclipse.jface.text.source.SourceViewerConfiguration
-
getPresentationReconciler
public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
- Overrides:
getPresentationReconcilerin classorg.eclipse.jface.text.source.SourceViewerConfiguration
-
getCodeScanner
protected UnoidlScanner getCodeScanner()
- Returns:
- the code scanner if it's not already created
-
getDocScanner
protected UnoidlDocScanner getDocScanner()
- Returns:
- the comments scanner if it's not already created
-
getPreprocScanner
protected UnoidlPreprocessorScanner getPreprocScanner()
- Returns:
- the preprocessor instruction scanner if it's not already created.
-
-