modesteditor.core
Class ModestSourceViewerConfiguration

java.lang.Object
  extended by org.eclipse.jface.text.source.SourceViewerConfiguration
      extended by modesteditor.core.ModestSourceViewerConfiguration

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

Configuration for an SourceViewer which shows MoDeST code.


Constructor Summary
ModestSourceViewerConfiguration(ModestEditor editor)
           
 
Method Summary
 org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 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)
          Returns the content types of the document.
 java.lang.String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Returns the partitioning for the MoDeST document.
 org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Returns the content assistant for a MoDeST document.
 java.lang.String getDefaultPrefix(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 java.lang.String[] getIndentPrefixes(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)
          Returns the PresentationReconciler.
 org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer viewer)
          Returns the reconciler that will update the simulation model in response to changes in the editor's document.
 int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer, java.lang.String contentType)
           
 
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration
getAutoIndentStrategy, getConfiguredTextHoverStateMasks, getContentFormatter, getDefaultPrefixes, getHyperlinkDetectors, getHyperlinkPresenter, getHyperlinkStateMask, getInformationControlCreator, getInformationPresenter, getOverviewRulerAnnotationHover, getQuickAssistAssistant, getTextHover, getUndoManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModestSourceViewerConfiguration

public ModestSourceViewerConfiguration(ModestEditor editor)
Method Detail

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

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

getConfiguredDocumentPartitioning

public java.lang.String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the partitioning for the MoDeST document.

Overrides:
getConfiguredDocumentPartitioning in class org.eclipse.jface.text.source.SourceViewerConfiguration

getConfiguredContentTypes

public java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the content types of the document.

Overrides:
getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfiguration

getContentAssistant

public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the content assistant for a MoDeST document.

Overrides:
getContentAssistant in class org.eclipse.jface.text.source.SourceViewerConfiguration

getDefaultPrefix

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

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

getIndentPrefixes

public java.lang.String[] getIndentPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                            java.lang.String contentType)
Overrides:
getIndentPrefixes in class org.eclipse.jface.text.source.SourceViewerConfiguration

getPresentationReconciler

public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Returns the PresentationReconciler. Here it does the syntax highlighting specific to a MoDeST file.

Overrides:
getPresentationReconciler in class org.eclipse.jface.text.source.SourceViewerConfiguration

getReconciler

public org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer viewer)
Returns the reconciler that will update the simulation model in response to changes in the editor's document.

Overrides:
getReconciler in class org.eclipse.jface.text.source.SourceViewerConfiguration

getTabWidth

public int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Overrides:
getTabWidth in class org.eclipse.jface.text.source.SourceViewerConfiguration

getTextHover

public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                      java.lang.String contentType)
Overrides:
getTextHover in class org.eclipse.jface.text.source.SourceViewerConfiguration