From 5885fca3b97ea4a6b9bd7eabd54cc10e232c72f8 Mon Sep 17 00:00:00 2001 From: Eugene Zhuravlev Date: Wed, 11 Apr 2012 17:20:21 +0200 Subject: [PATCH] IDEA-84343 Remove empty section from 'Messages Make' right-click menu --- .../src/com/intellij/compiler/impl/CompilerErrorTreeView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/java/compiler/impl/src/com/intellij/compiler/impl/CompilerErrorTreeView.java b/java/compiler/impl/src/com/intellij/compiler/impl/CompilerErrorTreeView.java index 3e2bc2b342de..d3414f3d4528 100644 --- a/java/compiler/impl/src/com/intellij/compiler/impl/CompilerErrorTreeView.java +++ b/java/compiler/impl/src/com/intellij/compiler/impl/CompilerErrorTreeView.java @@ -197,7 +197,6 @@ public class CompilerErrorTreeView extends NewErrorTreeViewPanel { final String[] text = messageElement.getText(); if (text.length > 0) { if (text[0].startsWith("[") && text[0].indexOf("]") != -1) { - presentation.setVisible(true); final Navigatable navigatable = messageElement.getNavigatable(); if (navigatable instanceof OpenFileDescriptor) { final OpenFileDescriptor fileDescriptor = (OpenFileDescriptor)navigatable; @@ -217,6 +216,7 @@ public class CompilerErrorTreeView extends NewErrorTreeViewPanel { final SuppressFix suppressInspectionFix = getSuppressAction(id); final boolean available = suppressInspectionFix.isAvailable(project, null, context); presentation.setEnabled(available); + presentation.setVisible(available); if (available) { presentation.setText(suppressInspectionFix.getText()); }