From 919f9c2735c4124446c7f37367a3926f558cd347 Mon Sep 17 00:00:00 2001 From: Evgeny Gerashchenko Date: Mon, 10 Sep 2012 13:53:47 +0400 Subject: [PATCH] Using descriptor renderer in Show Expression Type. --- .../jetbrains/jet/plugin/actions/ShowExpressionTypeAction.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/jet/plugin/actions/ShowExpressionTypeAction.java b/idea/src/org/jetbrains/jet/plugin/actions/ShowExpressionTypeAction.java index 92e506f9688..ac36ee86f49 100644 --- a/idea/src/org/jetbrains/jet/plugin/actions/ShowExpressionTypeAction.java +++ b/idea/src/org/jetbrains/jet/plugin/actions/ShowExpressionTypeAction.java @@ -31,6 +31,7 @@ import org.jetbrains.jet.lang.resolve.BindingContext; import org.jetbrains.jet.lang.types.JetType; import org.jetbrains.jet.plugin.JetLanguage; import org.jetbrains.jet.plugin.project.WholeProjectAnalyzerFacade; +import org.jetbrains.jet.resolve.DescriptorRenderer; /** * @author yole @@ -64,7 +65,7 @@ public class ShowExpressionTypeAction extends AnAction { if (expression != null) { JetType type = bindingContext.get(BindingContext.EXPRESSION_TYPE, expression); if (type != null) { - HintManager.getInstance().showInformationHint(editor, type.toString()); + HintManager.getInstance().showInformationHint(editor, "" + DescriptorRenderer.HTML.renderType(type) + ""); } } }