}
public CompletionTask createToolTipTask() {
return new AsyncCompletionTask(new AsyncCompletionQuery() {
protected void query(CompletionResultSet completionResultSet, Document document, int i) {
JToolTip toolTip = new JToolTip();
toolTip.setTipText("Press Enter to insert \"" + getCompletionText() + "\"");
completionResultSet.setToolTip(toolTip);
completionResultSet.finish();
}
});
}