Package com.intellij.codeInsight.completion

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


        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

Related Classes of com.intellij.codeInsight.completion.CodeCompletionHandlerBase

Copyright © 2018 www.massapicom. 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.