Package com.intellij.codeInsight.hint

Examples of com.intellij.codeInsight.hint.HintManager


        }

        try {
            processIntention(element, editor);
        } catch (IntentionExecutionException e) {
            HintManager hintManager = HintManager.getInstance();
            if (e.getStartOffset() >= 0 && e.getLength() > 0) {
                int start = element.getTextOffset() + e.getStartOffset();
                int end = start + e.getLength();
                editor.getCaretModel().moveToOffset(end);
                editor.getSelectionModel().setSelection(start, end);
            }
            hintManager.showErrorHint(editor, e.getMessage());
        }
    }
View Full Code Here

TOP

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

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.