From dc1ed9ddccb3b7afb34eb099d142a2dbd9606121 Mon Sep 17 00:00:00 2001 From: axelcl Date: Sun, 5 Dec 2004 13:11:47 +0000 Subject: [PATCH] misc --- .../phpeditor/php/PHPCompletionProcessor.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java index 40b6d78..b4efebc 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java @@ -61,6 +61,7 @@ import org.eclipse.jface.text.contentassist.IContextInformation; 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; @@ -469,7 +470,7 @@ public class PHPCompletionProcessor implements IContentAssistProcessor { 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; @@ -679,8 +680,8 @@ public class PHPCompletionProcessor implements IContentAssistProcessor { * @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) { -- 1.7.1