From e8a6c08591872a694c686d01b9b7bd3ed86ae7ca Mon Sep 17 00:00:00 2001 From: Roman Chernyatchik Date: Thu, 12 Feb 2009 15:18:42 +0300 Subject: [PATCH] action presentation was fixed --- .../testframework/sm/runner/ui/statistics/ShowStatisticsAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/statistics/ShowStatisticsAction.java b/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/statistics/ShowStatisticsAction.java index ddc3eb1ae8..89dd898ba7 100644 --- a/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/statistics/ShowStatisticsAction.java +++ b/smRunner/src/com/intellij/execution/testframework/sm/runner/ui/statistics/ShowStatisticsAction.java @@ -27,9 +27,9 @@ public class ShowStatisticsAction extends AnAction { @Override public void update(final AnActionEvent e) { - final Presentation presentation = getTemplatePresentation(); + final Presentation presentation = e.getPresentation(); - // visible onle in SMTRunnerTestTreeView + // visible only in SMTRunnerTestTreeView presentation.setVisible(e.getData(SMTRunnerTestTreeView.SM_TEST_RUNNER_VIEW) != null); // enabled if some proxy is selected presentation.setEnabled(getSelectedTestProxy(e) != null); -- 2.11.4.GIT