misc
authoraxelcl <axelcl>
Sun, 5 Dec 2004 13:11:47 +0000 (13:11 +0000)
committeraxelcl <axelcl>
Sun, 5 Dec 2004 13:11:47 +0000 (13:11 +0000)
net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPCompletionProcessor.java

index 40b6d78..b4efebc 100644 (file)
@@ -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) {