Package com.intellij.codeInsight.lookup

Examples of com.intellij.codeInsight.lookup.Lookup


        EmptyAction.setupAction(this, actionId, null);
    }

    public void update(AnActionEvent e) {
        EditorEx editor = console.getConsoleEditor();
        Lookup lookup = LookupManager.getActiveLookup(editor);
        e.getPresentation().setEnabled(!processHandler.isProcessTerminated() &&
            (lookup == null || !lookup.isCompletion()));
    }
View Full Code Here


    private boolean isActionEnabled() {
        if (myProcessHandler.isProcessTerminated()) {
            return false;
        }

        final Lookup lookup = LookupManager.getActiveLookup(languageConsole.getConsoleEditor());
        if (lookup == null || !lookup.isCompletion()) {
            return true;
        }

        CompletionProcess completion = CompletionService.getCompletionService().getCurrentCompletion();
        if (completion != null && completion.isAutopopupCompletion() && !lookup.isSelectionTouched()) {
            return true;
        }
        return false;
    }
View Full Code Here

  private boolean isActionEnabled() {
    if (myProcessHandler.isProcessTerminated()) {
      return false;
    }

    final Lookup lookup = LookupManager.getActiveLookup(myLanguageConsole.getConsoleEditor());
    if (lookup == null || !lookup.isCompletion()) {
      return true;
    }

    CompletionProcess completion = CompletionService.getCompletionService().getCurrentCompletion();
    if (completion != null && completion.isAutopopupCompletion() && !lookup.isSelectionTouched()) {
      return true;
    }
    return false;
  }
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.lookup.Lookup

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.