| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.jface.text.source.SourceViewerConfiguration
org.eclipse.datatools.sqltools.sqleditor.internal.editor.SQLSourceViewerConfiguration
public class SQLSourceViewerConfiguration
This class defines the editor add-ons; content assist, content formatter, highlighting, auto-indent strategy, double click strategy.
| Constructor Summary | |
|---|---|
| SQLSourceViewerConfiguration()Constructs an instance of this class. | |
| SQLSourceViewerConfiguration(SQLEditor editor)Constructs an instance of this class with the given SQLEditor to configure. | |
| Method Summary | |
|---|---|
|  org.eclipse.jface.text.source.IAnnotationHover | getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)Returns the annotation hover which will provide the information to be shown in a hover popup window when requested for the given source viewer. | 
|  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) | 
|  java.lang.String | getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)Returns the configured partitioning for the given source viewer. | 
|  org.eclipse.jface.text.contentassist.IContentAssistant | getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)Creates, initializes, and returns the ContentAssistant to use with this editor. | 
|  org.eclipse.jface.text.formatter.IContentFormatter | getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)Creates, configures, and returns the ContentFormatter to use. | 
|  ISQLDBProposalsService | getDBProposalsService()Gets the DBProposalsServiceobject that provides content
 assist services for this editor. | 
|  java.lang.String[] | getDefaultPrefixes(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)Returns the double-click strategy ready to be used in this viewer when double clicking onto text of the given content type. | 
|  org.eclipse.jface.text.IInformationControlCreator | getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer) | 
|  org.eclipse.jface.text.information.IInformationPresenter | getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer) | 
|  org.eclipse.jface.text.presentation.IPresentationReconciler | getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)Creates, configures, and returns a presentation reconciler to help with document changes. | 
|  SQLEditor | getSQLEditor()Returns the SQLEditor associated with this object. | 
|  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)Returns the text hover which will provide the information to be shown in a text hover popup window when requested for the given source viewer and the given content type. | 
|  void | setDBProposalsService(ISQLDBProposalsService dbProposalsService)Sets the ISQLDBProposalsServiceobject that provides content
 assist services for this viewer to the given object. | 
|  void | setSQLEditor(SQLEditor editor)Associates the SQLEditor with this object. | 
| Methods inherited from class org.eclipse.jface.text.source.SourceViewerConfiguration | 
|---|
| getAutoIndentStrategy, getConfiguredTextHoverStateMasks, getHyperlinkDetectors, getHyperlinkPresenter, getHyperlinkStateMask, getIndentPrefixes, getOverviewRulerAnnotationHover, getQuickAssistAssistant, getReconciler, getTextHover, getUndoManager | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SQLSourceViewerConfiguration()
public SQLSourceViewerConfiguration(SQLEditor editor)
editor - the SQLEditor to configure| Method Detail | 
|---|
public org.eclipse.jface.text.source.IAnnotationHover getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getAnnotationHover in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getAnnotationHover(org.eclipse.jface.text.source.ISourceViewer)
public org.eclipse.jface.text.IAutoEditStrategy[] getAutoEditStrategies(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                        java.lang.String contentType)
getAutoEditStrategies in class org.eclipse.jface.text.source.SourceViewerConfigurationpublic java.lang.String getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredDocumentPartitioning in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getConfiguredDocumentPartitioning(org.eclipse.jface.text.source.ISourceViewer)public org.eclipse.jface.text.contentassist.IContentAssistant getContentAssistant(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getContentAssistant in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getContentAssistant(ISourceViewer)public org.eclipse.jface.text.IInformationControlCreator getInformationControlCreator(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationControlCreator in class org.eclipse.jface.text.source.SourceViewerConfigurationpublic org.eclipse.jface.text.formatter.IContentFormatter getContentFormatter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getContentFormatter in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getContentFormatter(ISourceViewer)public ISQLDBProposalsService getDBProposalsService()
DBProposalsService object that provides content
 assist services for this editor.
DBProposalsService object
public org.eclipse.jface.text.ITextDoubleClickStrategy getDoubleClickStrategy(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                                              java.lang.String contentType)
getDoubleClickStrategy in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getDoubleClickStrategy(ISourceViewer, String)public org.eclipse.jface.text.presentation.IPresentationReconciler getPresentationReconciler(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getPresentationReconciler in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getPresentationReconciler(ISourceViewer)public SQLEditor getSQLEditor()
public void setSQLEditor(SQLEditor editor)
public org.eclipse.jface.text.ITextHover getTextHover(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                                      java.lang.String contentType)
getTextHover in class org.eclipse.jface.text.source.SourceViewerConfigurationSourceViewerConfiguration.getTextHover(org.eclipse.jface.text.source.ISourceViewer, java.lang.String)public void setDBProposalsService(ISQLDBProposalsService dbProposalsService)
ISQLDBProposalsService object that provides content
 assist services for this viewer to the given object.
the - ISQLDBProposalsService object to setpublic java.lang.String[] getConfiguredContentTypes(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getConfiguredContentTypes in class org.eclipse.jface.text.source.SourceViewerConfiguration
public java.lang.String[] getDefaultPrefixes(org.eclipse.jface.text.source.ISourceViewer sourceViewer,
                                             java.lang.String contentType)
getDefaultPrefixes in class org.eclipse.jface.text.source.SourceViewerConfigurationpublic org.eclipse.jface.text.information.IInformationPresenter getInformationPresenter(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getInformationPresenter in class org.eclipse.jface.text.source.SourceViewerConfigurationpublic int getTabWidth(org.eclipse.jface.text.source.ISourceViewer sourceViewer)
getTabWidth in class org.eclipse.jface.text.source.SourceViewerConfiguration| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||