org.eclipse.mtl.ide.ui.editors.template
Class MTLConfiguration

java.lang.Object
  extended by org.eclipse.jface.text.source.SourceViewerConfiguration
      extended by org.eclipse.mtl.ide.ui.editors.template.MTLConfiguration

public class MTLConfiguration
extends org.eclipse.jface.text.source.SourceViewerConfiguration

This class bundles the configuration space of a MTL template editor.


Field Summary
protected  MTLEditor editor
          The editor.
 
Constructor Summary
MTLConfiguration(MTLEditor editor)
          Constructor.
 
Method Summary
 org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          
 java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          
 org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          
 org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
          
 org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          
 org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          
protected  AbstractMTLScanner[] getScanners()
          Gets the scanners of the source configuration.
 
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration
getAutoEditStrategies, getAutoIndentStrategy, getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentFormatter, getDefaultPrefixes, getHyperlinkDetectors, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixes, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getOverviewRulerAnnotationHover, getQuickAssistAssistant, getTabWidth, getTextHover, getTextHover, getUndoManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

editor

protected MTLEditor editor
The editor.

Constructor Detail

MTLConfiguration

public MTLConfiguration(MTLEditor editor)
Constructor.

Parameters:
editor - is the source editor
Method Detail

getScanners

protected AbstractMTLScanner[] getScanners()
Gets the scanners of the source configuration.

Returns:
the scanners

getConfiguredContentTypes

public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)

Overrides:
getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfiguration
See Also:
SourceViewerConfiguration.getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer)

getDoubleClickStrategy

public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                              java.lang.String contentType)

Overrides:
getDoubleClickStrategy in class org.eclipse.jface.text.source.SourceViewerConfiguration
See Also:
SourceViewerConfiguration.getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer, java.lang.String)

getPresentationReconciler

public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)

Overrides:
getPresentationReconciler in class org.eclipse.jface.text.source.SourceViewerConfiguration
See Also:
SourceViewerConfiguration.getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer)

getContentAssistant

public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)

Overrides:
getContentAssistant in class org.eclipse.jface.text.source.SourceViewerConfiguration
See Also:
SourceViewerConfiguration.getContentAssistant(org.eclipse.jface.text.source.ISourceViewer)

getAnnotationHover

public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)

Overrides:
getAnnotationHover in class org.eclipse.jface.text.source.SourceViewerConfiguration
See Also:
SourceViewerConfiguration.getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer)

getReconciler

public org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)

Overrides:
getReconciler in class org.eclipse.jface.text.source.SourceViewerConfiguration
See Also:
SourceViewerConfiguration.getReconciler(org.eclipse.jface.text.source.ISourceViewer)

Copyright 2008 Obeo
All Rights Reserved.