Search in sources :

Example 1 with CompletionContributor

use of com.intellij.codeInsight.completion.CompletionContributor in project intellij-community by JetBrains.

the class JsonSchemaCompletionContributor method fillCompletionVariants.

@Override
public void fillCompletionVariants(@NotNull CompletionParameters parameters, @NotNull CompletionResultSet result) {
    Project project = parameters.getEditor().getProject();
    assert project != null;
    JsonSchemaService service = JsonSchemaService.Impl.get(project);
    assert service != null;
    CompletionContributor delegate = service.getCompletionContributor(parameters.getOriginalFile().getVirtualFile());
    if (delegate != null) {
        delegate.fillCompletionVariants(parameters, result);
    }
}
Also used : Project(com.intellij.openapi.project.Project) CompletionContributor(com.intellij.codeInsight.completion.CompletionContributor)

Aggregations

CompletionContributor (com.intellij.codeInsight.completion.CompletionContributor)1 Project (com.intellij.openapi.project.Project)1