Examples of CodeCompletionHandlerBase


Examples of com.intellij.codeInsight.completion.CodeCompletionHandlerBase

    return complete(time, CompletionType.BASIC);
  }

  @Nullable
  protected CompleteResult complete(int time, CompletionType completionType) {
    new CodeCompletionHandlerBase(completionType, false, false, true).
        invokeCompletion(getProject(), getEditor(), time, false, false);
    LookupImpl lookup = (LookupImpl) LookupManager.getActiveLookup(getEditor());
    if (lookup == null) return null;
    return new CompleteResult(lookup.getItems().toArray(LookupElement.EMPTY_ARRAY),
        lookup.itemPattern(lookup.getItems().get(0)));
View Full Code Here

Examples of com.intellij.codeInsight.completion.CodeCompletionHandlerBase

        int startOffset = nextRange.getStartOffset();
        caretModel.moveToOffset(startOffset);
        SelectionModel selectionModel = editor.getSelectionModel();
        selectionModel.setSelection(startOffset, nextRange.getEndOffset());

        new CodeCompletionHandlerBase(CompletionType.BASIC).invokeCompletion(editor.getProject(), editor);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.