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;
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