|
||||||||||
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.SQLParserCompletionEngine
public class SQLParserCompletionEngine
Computes proposals by SQLParser
Constructor Summary | |
---|---|
SQLParserCompletionEngine()
|
Method Summary | |
---|---|
org.eclipse.jface.text.contentassist.IContextInformation[] |
computeContextInformation(org.eclipse.jface.text.IDocument doc,
org.eclipse.jface.text.ITypedRegion partition,
int documentOffset,
org.eclipse.swt.graphics.Point selection)
Compute ContextInformation |
org.eclipse.jface.text.contentassist.ICompletionProposal[] |
computeProposals(org.eclipse.jface.text.IDocument doc,
org.eclipse.jface.text.ITypedRegion partition,
int documentOffset,
org.eclipse.swt.graphics.Point selection)
Compute proposals |
static int |
findStatementStart(java.lang.String text,
int offset,
java.lang.String[] startTokens,
java.lang.String[] terminators)
Finds the start offset of the current statement. |
ISQLDBProposalsService |
getDBProposalsService()
Gets the current DBProposalsService . |
boolean |
needsDisplayOwner(SQLDBProposal proposal,
int length)
|
void |
setDBProposalsService(ISQLDBProposalsService dbProposalsService)
Sets the DBProposalsService to use. |
static boolean |
startsWithIgnoreCase(java.lang.String string,
java.lang.String prefix)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLParserCompletionEngine()
Method Detail |
---|
public org.eclipse.jface.text.contentassist.ICompletionProposal[] computeProposals(org.eclipse.jface.text.IDocument doc, org.eclipse.jface.text.ITypedRegion partition, int documentOffset, org.eclipse.swt.graphics.Point selection)
ISQLCompletionEngine
computeProposals
in interface ISQLCompletionEngine
doc
- The documentpartition
- document partitiondocumentOffset
- current offset in the documentselection
- the range of the current selection in coordinates of this viewer's documentpublic static int findStatementStart(java.lang.String text, int offset, java.lang.String[] startTokens, java.lang.String[] terminators)
text
- offset
- startTokens
- terminators
-
public static boolean startsWithIgnoreCase(java.lang.String string, java.lang.String prefix)
public void setDBProposalsService(ISQLDBProposalsService dbProposalsService)
DBProposalsService
to use.
dbProposalsService
- the DBProposalsService
to usepublic ISQLDBProposalsService getDBProposalsService()
DBProposalsService
.
dbProposalsService
- the current DBProposalsService
.public boolean needsDisplayOwner(SQLDBProposal proposal, int length)
public org.eclipse.jface.text.contentassist.IContextInformation[] computeContextInformation(org.eclipse.jface.text.IDocument doc, org.eclipse.jface.text.ITypedRegion partition, int documentOffset, org.eclipse.swt.graphics.Point selection)
ISQLCompletionEngine
computeContextInformation
in interface ISQLCompletionEngine
doc
- The documentpartition
- document partitiondocumentOffset
- current offset in the documentselection
- the range of the current selection in coordinates of this viewer's document
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |