ToolWindow Changes

Answered

trying my very first plugin dev.
the plugin has a toolwindow, and i set it an icon:

final Icon icon = IconLoader.getIcon("/images/my_icon.png");

ApplicationManager.getApplication().invokeLater(() -> {
final ToolWindow toolWindow = ToolWindowManager.getInstance(project).registerToolWindow(
RegisterToolWindowTask.closable(
":my[py]",
icon,
ToolWindowAnchor.BOTTOM));

the icon is displayed and all is good:


but then, after "scanning files to index", the icon changes to a dot:

at first i though it was a missing 

intellij {
plugins "platform-images"
}

in build.gradle, and a missing

<depends>com.intellij.platform.images</depends>

in plugin.xml, but it wasn't...

 


also, noticed that when this happens, the following returns null: 

project.getService(MyProjectService.class);

 

kindly advise.

4 comments
Comment actions Permalink

i think i spotted a pattern.

this happens if i run "runIde" after earlier debug session was "brutally" stopped via the stop button on idea.

0
Comment actions Permalink

Ohad, thanks for posting it.

So it shouldn't be treated as an issue then, right?

0
Comment actions Permalink

guess so.

how can i close this?

0
Comment actions Permalink

No worries about that, I've marked it as answered.

0

Please sign in to leave a comment.