org.eclipse.mat.ui.snapshot.panes.oql
Class OQLTextViewerConfiguration

java.lang.Object
  extended by SourceViewerConfiguration
      extended by org.eclipse.mat.ui.snapshot.panes.oql.OQLTextViewerConfiguration

public class OQLTextViewerConfiguration
extends SourceViewerConfiguration

Configuration provider to assign content assist to the SourceViewer.


Constructor Summary
OQLTextViewerConfiguration(ISnapshot snapshot, Color comment, Color keyword)
          Associates snapshot at this object.
 
Method Summary
 String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
           
 IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
          Instantiates content assist for every content type
 IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
          Provides syntax highlighting.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OQLTextViewerConfiguration

public OQLTextViewerConfiguration(ISnapshot snapshot,
                                  Color comment,
                                  Color keyword)
Associates snapshot at this object.

Parameters:
snapshot -
Method Detail

getConfiguredContentTypes

public String[] getConfiguredContentTypes(ISourceViewer sourceViewer)
Returns:
the list of managed content types.

getContentAssistant

public IContentAssistant getContentAssistant(ISourceViewer sourceViewer)
Instantiates content assist for every content type


getPresentationReconciler

public IPresentationReconciler getPresentationReconciler(ISourceViewer sourceViewer)
Provides syntax highlighting.