import org.eclipse.jface.text.contentassist.IContextInformationExtension;
import org.eclipse.jface.text.contentassist.IContextInformationPresenter;
import org.eclipse.jface.text.contentassist.IContextInformationValidator;
+import org.eclipse.jface.text.templates.DocumentTemplateContext;
import org.eclipse.jface.text.templates.TemplateContextType;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.graphics.Point;
if (ident.equals("select")) {
// System.out.println("select");
token = ITerminalSymbols.TokenNameSQLselect;
- return token;
+ return token;
} else if (ident.equals("insert")) {
// System.out.println("insert");
token = ITerminalSymbols.TokenNameSQLinsert;
* @param sqlResults
* @return
*/
- private IPHPCompletionProposal[] getSQLProposals(ITextViewer viewer, IProject project, JavaContext context, String prefix,
- TableName sqlTable, IPHPCompletionProposal[] sqlResults) {
+ private IPHPCompletionProposal[] getSQLProposals(ITextViewer viewer, IProject project, DocumentTemplateContext context,
+ String prefix, TableName sqlTable, IPHPCompletionProposal[] sqlResults) {
// Get The Database bookmark from the Quantum SQL plugin:
BookmarkCollection sqlBookMarks = BookmarkCollection.getInstance();
if (sqlBookMarks != null) {