org.eclipse.mofscript.editor
Class MofScriptConfiguration

java.lang.Object
  extended by org.eclipse.jface.text.source.SourceViewerConfiguration
      extended by org.eclipse.mofscript.editor.MofScriptConfiguration

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

Handles the configuration settings for the MOFScript text editor

Author:
jol

Nested Class Summary
(package private) static class MofScriptConfiguration.SingleTokenScanner
          The scanner
 
Constructor Summary
MofScriptConfiguration(ColorManager colorManager, MofScriptTextEditor editor)
          Boa Constructor
 
Method Summary
 org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 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.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
          Gets the indent prefixes
 org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Gets the tab width
 org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
          Gets the text hover
 
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration
getAnnotationHover, getAutoIndentStrategy, getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentFormatter, getDefaultPrefixes, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getOverviewRulerAnnotationHover, getQuickAssistAssistant, getReconciler, getTextHover, getUndoManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MofScriptConfiguration

public MofScriptConfiguration(ColorManager colorManager,
                              MofScriptTextEditor editor)
Boa Constructor

Parameters:
colorManager -
Method Detail

getConfiguredContentTypes

public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Overrides:
getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfiguration
Parameters:
sourceViewer -
Returns:

getIndentPrefixes

public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                            java.lang.String contentType)
Gets the indent prefixes

Overrides:
getIndentPrefixes in class org.eclipse.jface.text.source.SourceViewerConfiguration
Parameters:
sourceViewer -
contentType -
Returns:
Indent prefixes

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
Parameters:
sourceViewer -
contentType -
Returns:
a double click strategy

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
Parameters:
sourceViewer -
Returns:
A presentation reconciler

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
Parameters:
sourceViewer -
Returns:
Assistant responsible for propose, display and insert

getAutoEditStrategies

public org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                        java.lang.String contentType)
Overrides:
getAutoEditStrategies in class org.eclipse.jface.text.source.SourceViewerConfiguration
Parameters:
sourceViewer -
contentType -
Returns:

getTabWidth

public int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Gets the tab width

Overrides:
getTabWidth in class org.eclipse.jface.text.source.SourceViewerConfiguration
Parameters:
sourceViewer -
Returns:

getTextHover

public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                      java.lang.String contentType)
Gets the text hover

Overrides:
getTextHover in class org.eclipse.jface.text.source.SourceViewerConfiguration
Parameters:
sourceViewer -
contentType -
Returns:
Information to be displayed in the hover popup

getHyperlinkDetectors

public org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Overrides:
getHyperlinkDetectors in class org.eclipse.jface.text.source.SourceViewerConfiguration