IDEA-105253 Missing icon for Thread dumps view

(cherry picked from commit c78400d063778c68907b03c0e0ee1a40c99d3747)
This commit is contained in:
Konstantin Bulenkov
2014-01-17 16:10:04 +01:00
parent ccb78726b1
commit 4113b3e9c1
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2009 JetBrains s.r.o.
* Copyright 2000-2014 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -17,12 +17,15 @@
package com.intellij.execution.ui.layout.actions;
import com.intellij.execution.ui.layout.CellTransform;
import com.intellij.icons.AllIcons;
import com.intellij.idea.ActionsBundle;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.actionSystem.Presentation;
import com.intellij.ui.content.Content;
import javax.swing.*;
public class RestoreViewAction extends AnAction {
private final Content myContent;
@@ -38,7 +41,8 @@ public class RestoreViewAction extends AnAction {
Presentation p = e.getPresentation();
p.setText(ActionsBundle.message("action.Runner.RestoreView.text", myContent.getDisplayName()));
p.setDescription(ActionsBundle.message("action.Runner.RestoreView.description"));
p.setIcon(myContent.getIcon());
Icon icon = myContent.getIcon();
p.setIcon(icon == null ? AllIcons.Debugger.RestoreLayout : icon);
}
@Override