Added error log to the debug perspective
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / editors / SQLConfiguration.java
index 985c0d8..b2993fe 100644 (file)
@@ -8,6 +8,8 @@ import org.eclipse.jface.preference.IPreferenceStore;
 import org.eclipse.jface.preference.PreferenceConverter;
 import org.eclipse.jface.text.IDocument;
 import org.eclipse.jface.text.TextAttribute;
+import org.eclipse.jface.text.contentassist.ContentAssistant;
+import org.eclipse.jface.text.contentassist.IContentAssistant;
 import org.eclipse.jface.text.presentation.IPresentationReconciler;
 import org.eclipse.jface.text.presentation.PresentationReconciler;
 import org.eclipse.jface.text.source.ISourceViewer;
@@ -86,4 +88,23 @@ public class SQLConfiguration extends SourceViewerConfiguration {
                        ndr.setTextAttribute(attr);
                }
        }
+//     public IContentAssistant getContentAssistant(ISourceViewer sourceViewer) {
+//             ContentAssistant assistant = new ContentAssistant();
+//             assistant.setContentAssistProcessor(new SQLContentAssistProcessor("default"), 
+//                             IDocument.DEFAULT_CONTENT_TYPE);
+//             assistant.setContentAssistProcessor(new SQLContentAssistProcessor("comment"), 
+//                             SQLPartitionScanner.SQL_COMMENT);
+//             assistant.setContentAssistProcessor(new SQLContentAssistProcessor("keyword"), 
+//                             SQLPartitionScanner.SQL_KEYWORD);
+//             assistant.setContentAssistProcessor(new SQLContentAssistProcessor("identifier"), 
+//                             SQLPartitionScanner.SQL_IDENTIFIER);
+//             
+//             // everybody else is doin' it...
+//             assistant.enableAutoActivation(true);
+//             assistant.setAutoActivationDelay(500);
+//             
+//             assistant.setProposalPopupOrientation(ContentAssistant.CONTEXT_INFO_BELOW);
+//             assistant.setContextInformationPopupOrientation(ContentAssistant.CONTEXT_INFO_BELOW);
+//             return assistant;
+//     }
 }
\ No newline at end of file