Package com.intellij.codeInsight.hint

Examples of com.intellij.codeInsight.hint.QuestionAction


        HintManager.getInstance().showQuestionHint(editor, "Import symbol", range.getStartOffset(), range.getEndOffset(), createAddImportAction(editor));
        return true;
    }

    private QuestionAction createAddImportAction(final Editor editor) {
        return new QuestionAction() {
            public boolean execute() {
                final Module module = DeclarationPosition.getDeclModule(psiFile);
                final Project project = module.getProject();
                PsiDocumentManager.getInstance(project).commitAllDocuments();
                final BaseListPopupStep<String> step = new BaseListPopupStep<String>("Module to import", modules) {
View Full Code Here


    HintManager.getInstance().showQuestionHint(
      editor,
      message,
      hintRange.getStartOffset(),
      hintRange.getEndOffset(),
      new QuestionAction() {
        @Override
        public boolean execute() {
          myDelegate.invoke(myPsiElement.getProject(), editor, myPsiElement.getContainingFile());
          return true;
        }
View Full Code Here

TOP

Related Classes of com.intellij.codeInsight.hint.QuestionAction

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.