Skip to content

Commit

Permalink
Use Forge icon in command list popup
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-wyluda committed Jun 6, 2014
1 parent 7293786 commit 0310fa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*/
package org.jboss.forge.plugin.idea.ui;

import com.intellij.icons.AllIcons;
import com.intellij.openapi.ui.popup.*;
import com.intellij.ui.ListCellRendererWrapper;
import com.intellij.ui.components.JBList;
Expand All @@ -30,6 +29,7 @@ public class CommandListPopup
{
// TODO Refactor to builder pattern

private static final Icon FORGE_ICON = new ImageIcon(CommandListPopup.class.getResource("/icons/forge.png"));
private static volatile boolean active;

private final UIContext uiContext;
Expand Down Expand Up @@ -67,7 +67,7 @@ public void customize(JList list, Object data, int index,
{
if (data instanceof UICommand)
{
setIcon(AllIcons.Nodes.Plugin);
setIcon(FORGE_ICON);

UICommand command = (UICommand) data;
UICommandMetadata metadata = metadataIndex.get(command);
Expand Down
Binary file added src/main/resources/icons/forge.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0310fa0

Please sign in to comment.