Add tool window icon

This commit is contained in:
Marcel Haßlinger 2021-03-15 11:47:49 +01:00
parent f370b405d2
commit b0c28df3d7

View File

@ -1,5 +1,6 @@
package de.marhali.easyi18n; package de.marhali.easyi18n;
import com.intellij.icons.AllIcons;
import com.intellij.openapi.actionSystem.AnAction; import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.project.Project; import com.intellij.openapi.project.Project;
import com.intellij.openapi.wm.ToolWindow; import com.intellij.openapi.wm.ToolWindow;
@ -29,6 +30,8 @@ public class TranslatorToolWindowFactory implements ToolWindowFactory {
public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) { public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindow toolWindow) {
ContentFactory contentFactory = ContentFactory.SERVICE.getInstance(); ContentFactory contentFactory = ContentFactory.SERVICE.getInstance();
toolWindow.setIcon(AllIcons.Actions.InlayGlobe);
// Translations tree view // Translations tree view
TreeView treeView = new TreeView(project); TreeView treeView = new TreeView(project);
Content treeContent = contentFactory.createContent(treeView.getRootPanel(), Content treeContent = contentFactory.createContent(treeView.getRootPanel(),