| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLCompletionProcessor
public class SQLCompletionProcessor
This class implements a content assist processor for SQL code.
This processor should be registered with a content assistant in order to get involved in the assisting process.
| Constructor Summary | |
|---|---|
| SQLCompletionProcessor() | |
| Method Summary | |
|---|---|
|  org.eclipse.jface.text.contentassist.ICompletionProposal[] | computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
                           int documentOffset)Returns a list of proposed content completions based on the specified location within the document that corresponds to the current cursor position within the text-editor control. | 
|  org.eclipse.jface.text.contentassist.IContextInformation[] | computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
                          int documentOffset) | 
|  char[] | getCompletionProposalAutoActivationCharacters()Returns a string of characters which when pressed should automatically display content-assist proposals. | 
|  char[] | getContextInformationAutoActivationCharacters()Returns a string of characters which when pressed should automatically display a content-assist tip. | 
|  org.eclipse.jface.text.contentassist.IContextInformationValidator | getContextInformationValidator()Returns a delegate used to determine when a displayed tip should be dismissed. | 
|  ISQLDBProposalsService | getDBProposalService()Gets the DBProposalsService. | 
|  java.lang.String | getErrorMessage()Returns the reason why the content-assist processor was unable to produce any proposals or tips. | 
|  void | orderProposalsAlphabetically(boolean order)Tells this processor to order the proposals alphabetically. | 
|  void | setDBProposalsService(ISQLDBProposalsService dbProposalsService)Sets the ISQLDBProposalsServiceto use to generate DB object
 proposals (tables, columns) for content assist. | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SQLCompletionProcessor()
| Method Detail | 
|---|
public void orderProposalsAlphabetically(boolean order)
order - true if proposals should be ordered.
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
                                                                                             int documentOffset)
computeCompletionProposals in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorviewer - the viewer whose document is used to compute the proposalsdocumentPosition - a location within the document
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
                                                                                            int documentOffset)
computeContextInformation in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic char[] getCompletionProposalAutoActivationCharacters()
getCompletionProposalAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorIContentAssistProcessor.getCompletionProposalAutoActivationCharacters()public char[] getContextInformationAutoActivationCharacters()
getContextInformationAutoActivationCharacters in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic org.eclipse.jface.text.contentassist.IContextInformationValidator getContextInformationValidator()
getContextInformationValidator in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic ISQLDBProposalsService getDBProposalService()
public java.lang.String getErrorMessage()
getErrorMessage in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic void setDBProposalsService(ISQLDBProposalsService dbProposalsService)
ISQLDBProposalsService to use to generate DB object
 proposals (tables, columns) for content assist.
dbProposalsService - the ISQLDBProposalsService object to use| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||