From b0c28df3d7d4b1f3236aa77c702a45852427e6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20Ha=C3=9Flinger?= Date: Mon, 15 Mar 2021 11:47:49 +0100 Subject: [PATCH] Add tool window icon --- .../java/de/marhali/easyi18n/TranslatorToolWindowFactory.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/de/marhali/easyi18n/TranslatorToolWindowFactory.java b/src/main/java/de/marhali/easyi18n/TranslatorToolWindowFactory.java index 38efd01..67e074e 100644 --- a/src/main/java/de/marhali/easyi18n/TranslatorToolWindowFactory.java +++ b/src/main/java/de/marhali/easyi18n/TranslatorToolWindowFactory.java @@ -1,5 +1,6 @@ package de.marhali.easyi18n; +import com.intellij.icons.AllIcons; import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.project.Project; import com.intellij.openapi.wm.ToolWindow; @@ -29,6 +30,8 @@ public class TranslatorToolWindowFactory implements ToolWindowFactory { public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) { ContentFactory contentFactory = ContentFactory.SERVICE.getInstance(); + toolWindow.setIcon(AllIcons.Actions.InlayGlobe); + // Translations tree view TreeView treeView = new TreeView(project); Content treeContent = contentFactory.createContent(treeView.getRootPanel(),