org.drools.eclipse.editors
Class DRLSourceViewerConfig

java.lang.Object
  extended by org.eclipse.jface.text.source.SourceViewerConfiguration
      extended by org.drools.eclipse.editors.DRLSourceViewerConfig
Direct Known Subclasses:
DSLRuleSourceViewerConfig

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

Source viewer config wires up the syntax highlighting, partitioning and content assistance.


Constructor Summary
DRLSourceViewerConfig(AbstractRuleEditor editor)
           
 
Method Summary
 org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Get the appropriate content assistance, for each partition.
protected  AbstractRuleEditor getEditor()
           
 org.eclipse.jface.text.hyperlink.IHyperlinkDetector[] getHyperlinkDetectors(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 org.eclipse.jface.text.hyperlink.IHyperlinkPresenter getHyperlinkPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 org.eclipse.jface.text.source.IAnnotationHover getOverviewRulerAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
 org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
          Define reconciler - this has to be done for each partition.
 org.eclipse.jface.text.reconciler.IReconciler getReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
           
protected  DRLScanner getScanner()
           
 
Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration
getAutoEditStrategies, getAutoIndentStrategy, getConfiguredDocumentPartitioning, getConfiguredTextHoverStateMasks, getContentFormatter, getDefaultPrefixes, getDoubleClickStrategy, getHyperlinkStateMask, getIndentPrefixes, getIndentPrefixesForTab, getInformationControlCreator, getInformationPresenter, getQuickAssistAssistant, getTabWidth, getTextHover, getTextHover, getUndoManager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DRLSourceViewerConfig

public DRLSourceViewerConfig(AbstractRuleEditor editor)
Method Detail

getEditor

protected AbstractRuleEditor getEditor()

getScanner

protected DRLScanner getScanner()

getPresentationReconciler

public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Define reconciler - this has to be done for each partition. Currently there are 3 partitions, Inside rule, outside rule and inside comment.

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

getContentAssistant

public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Get the appropriate content assistance, for each partition.

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

getConfiguredContentTypes

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

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

getOverviewRulerAnnotationHover

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

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

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

getHyperlinkPresenter

public org.eclipse.jface.text.hyperlink.IHyperlinkPresenter getHyperlinkPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
Overrides:
getHyperlinkPresenter in class org.eclipse.jface.text.source.SourceViewerConfiguration


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.