|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.views.source.SQLCompletionProcessor
public class SQLCompletionProcessor
| Constructor Summary | |
|---|---|
SQLCompletionProcessor()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(org.eclipse.jface.text.IDocument doc,
int docOffset)
Returns a list of proposed content completions based on the specified offset within the given document. |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int docOffset)
Returns a list of proposed content completions based on the specified offset within the document associated with the given text viewer. |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeCompletionProposals(java.lang.String stmt,
int stmtOffset)
Returns a list of proposed content completions based on the specified offset given SQL statement. |
org.eclipse.jface.text.contentassist.IContextInformation[] |
computeContextInformation(org.eclipse.jface.text.IDocument doc,
int docOffset)
Returns a list of content assist tips based on the specified location within the given document. |
org.eclipse.jface.text.contentassist.IContextInformation[] |
computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
int docOffset)
Returns a list of content assist tips based on the specified location within the document associated with the given text viewer. |
org.eclipse.jface.text.contentassist.IContextInformation[] |
computeContextInformation(java.lang.String stmt,
int stmtOffset)
Returns a list of content assist tips based on the specified location within the given statement string. |
SQLCompletionEngine |
getCompletionEngine()
Gets the SQLCompletionEngine associated with this completion processor. |
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. |
IDBContext |
getDBContext()
Gets the current DB context object. |
java.lang.String |
getErrorMessage()
Returns the reason why the content assist processor was unable to produce any proposals or tips. |
void |
setCompletionEngine(SQLCompletionEngine completionEngine)
Sets the SQLCompletionEngine object for this processor to the given object. |
void |
setCompletionProposalAutoActivationCharacters(char[] activationSet)
Sets this processor's set of characters triggering the activation of the completion proposal computation. |
void |
setDBContext(IDBContext newDBContext)
Sets the DB context object to the given object. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SQLCompletionProcessor()
| Method Detail |
|---|
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(java.lang.String stmt,
int stmtOffset)
stmt - the statement for which proposals are neededstmtOffset - offset within the statement where proposals are needed
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.ITextViewer viewer,
int docOffset)
computeCompletionProposals in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorviewer - the viewer whose document is used to compute the proposalsdocOffset - the offset within the document where content assist is needed
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeCompletionProposals(org.eclipse.jface.text.IDocument doc,
int docOffset)
doc - the current document containing the SQL statementdocOffset - the offset within the document where content assist is needed
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.ITextViewer viewer,
int docOffset)
computeContextInformation in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorviewer - the text viewer for which tips are neededdocOffset - the offset in the document where tips are needed
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(java.lang.String stmt,
int stmtOffset)
stmt - the SQL statement for which tips are neededstmtOffset - the offset in the statement where tips are needed
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.IDocument doc,
int docOffset)
doc - the document containing the SQL statement for which tips are neededdocOffset - the offset within the document where tips are needed
public SQLCompletionEngine getCompletionEngine()
public 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 IDBContext getDBContext()
public java.lang.String getErrorMessage()
getErrorMessage in interface org.eclipse.jface.text.contentassist.IContentAssistProcessorpublic void setCompletionEngine(SQLCompletionEngine completionEngine)
completionEngine - the completion engine to usepublic void setCompletionProposalAutoActivationCharacters(char[] activationSet)
activationSet - the activation set to usepublic void setDBContext(IDBContext newDBContext)
newDBContext - the DB context object to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||