'RegisterToolWindowTask' is marked unstable with @ApiStatus.Internal

Answered

Hi,

I am trying to register a toolWindow programmatically using the below code. However, when I use RegisterToolWindowTask programmatically, I get a warning saying that it is marked illegal. I just wanted to know whether the below way is correct way to do it or not. I also want to change contents of this toolWindow later from different classes.

toolWindowManager = ToolWindowManager.getInstance(project!!)

val task =        RegisterToolWindowTask(taskName,
ToolWindowAnchor.BOTTOM,
findingsWindowPanel,
sideTool = true,
canCloseContent = true,
canWorkInDumbMode = true,
shouldBeAvailable = false)

toolWindowManager!!.registerToolWindow(task)
0
2 comments

Hi,

Unfortunately, temporarily we've marked all the APIs as internal. It should be fixed soon.

Until we fix it, please follow instructions from the docs:
https://plugins.jetbrains.com/docs/intellij/tool-windows.html

and ignore the warnings.

1

Please sign in to leave a comment.