org.openoffice.ide.eclipse.core.editors.idl
Class UnoidlConfiguration

java.lang.Object
  extended by org.eclipse.jface.text.source.SourceViewerConfiguration
      extended by org.openoffice.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.openoffice.ide.eclipse.core.editors.syntax package.

Author:
cbosdonnat

Constructor Summary
UnoidlConfiguration(ColorProvider pColorManager)
          Default constructor using a color manager.
 
Method Summary
 org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
           
protected  UnoidlScanner getCodeScanner()
           
 java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
          
protected  UnoidlDocScanner getDocScanner()
           
 org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer pSourceViewer, java.lang.String pContentType)
          
 org.eclipse.jface.text.source.IAnnotationHover getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer pSourceViewer)
           
protected  UnoidlPreprocessorScanner getPreprocScanner()
           
 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, getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentAssistant, getContentFormatter, getDefaultPrefixes, getHyperlinkDetectors, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixes, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, 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 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:
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 java.lang.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.