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.SourceViewerConfiguration

Provides 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.syntax package.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Default constructor using a color manager.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.jface.text.source.IAnnotationHover
    getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
     
    protected UnoidlScanner
     
    getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
     
    org.eclipse.jface.text.ITextDoubleClickStrategy
    getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
    org.eclipse.jface.text.source.IAnnotationHover
    getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
     
     
    org.eclipse.jface.text.presentation.IPresentationReconciler
    getPresentationReconciler(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, getLineSpacing, getQuickAssistAssistant, getReconciler, getTabWidth, getTextHover, getTextHover, getUndoManager

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UnoidlConfiguration

      public UnoidlConfiguration(ColorProvider colorManager)
      Default constructor using a color manager.
      Parameters:
      colorManager - the color manager to colorize the syntax elements
  • Method Details

    • getDoubleClickStrategy

      public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, String contentType)
      Overrides:
      getDoubleClickStrategy in class org.eclipse.jface.text.source.SourceViewerConfiguration
    • getAnnotationHover

      public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
      Overrides:
      getAnnotationHover in class org.eclipse.jface.text.source.SourceViewerConfiguration
    • getOverviewRulerAnnotationHover

      public org.eclipse.jface.text.source.IAnnotationHover getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
      Overrides:
      getOverviewRulerAnnotationHover in class org.eclipse.jface.text.source.SourceViewerConfiguration
    • getConfiguredContentTypes

      public String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
      Overrides:
      getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfiguration
    • getPresentationReconciler

      public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
      Overrides:
      getPresentationReconciler in class org.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.