Search in sources :

Example 1 with TaskAutoCompletionListProvider

use of com.intellij.tasks.actions.TaskAutoCompletionListProvider in project intellij-community by JetBrains.

the class TaskCompletionTest method configureFile.

private void configureFile(String text) {
    PsiFile psiFile = myFixture.configureByText("test.txt", text);
    Document document = myFixture.getDocument(psiFile);
    final Project project = getProject();
    TextFieldWithAutoCompletion.installCompletion(document, project, new TaskAutoCompletionListProvider(project), false);
    document.putUserData(CommitMessage.DATA_KEY, new CommitMessage(project));
}
Also used : Project(com.intellij.openapi.project.Project) CommitMessage(com.intellij.openapi.vcs.ui.CommitMessage) TaskAutoCompletionListProvider(com.intellij.tasks.actions.TaskAutoCompletionListProvider) PsiFile(com.intellij.psi.PsiFile) Document(com.intellij.openapi.editor.Document)

Example 2 with TaskAutoCompletionListProvider

use of com.intellij.tasks.actions.TaskAutoCompletionListProvider in project intellij-community by JetBrains.

the class TaskChangelistSupport method installSearch.

public void installSearch(EditorTextField name, final EditorTextField comment) {
    Document document = name.getDocument();
    final TaskAutoCompletionListProvider completionProvider = new TaskAutoCompletionListProvider(myProject);
    TextFieldWithAutoCompletion.installCompletion(document, myProject, completionProvider, false);
}
Also used : TaskAutoCompletionListProvider(com.intellij.tasks.actions.TaskAutoCompletionListProvider) Document(com.intellij.openapi.editor.Document)

Aggregations

Document (com.intellij.openapi.editor.Document)2 TaskAutoCompletionListProvider (com.intellij.tasks.actions.TaskAutoCompletionListProvider)2 Project (com.intellij.openapi.project.Project)1 CommitMessage (com.intellij.openapi.vcs.ui.CommitMessage)1 PsiFile (com.intellij.psi.PsiFile)1