Add item to servers list
How would I add an item to the Task -> Switch server list?
I tried making a plugin and adding an action to plugin.xml of
<action id="GeminiPluginTaskAction" text="Gemini Task"
description="task stuff">
<add-to-group group-id="tasks.toolbar.group" anchor="last"/>
</action>
but keep getting an error
[ 6855] ERROR - nSystem.impl.ActionManagerImpl - com.thesba.GeminiPlugin.GeminiPluginTaskAction: action with id "tasks.toolbar.group" isn't registered; action will be added to the "Other" group [Plugin: GeminiPlugin]
com.intellij.diagnostic.PluginException: com.thesba.GeminiPlugin.GeminiPluginTaskAction: action with id "tasks.toolbar.group" isn't registered; action will be added to the "Other" group [Plugin: GeminiPlugin]
Please sign in to leave a comment.
Hello,
In order to be able to interact with action groups of the Tasks plugin, you
need to mark your plugin as depending on it (add a 'depends' tag with the
value of 'com.intellij.tasks')
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
And where is the tasks library? I do not see it in the classpath of the SDK. Right now I am getting a Cannot resolve com.intellij.tasks
Alright resolved that issue but now having
[ 3192] ERROR - nSystem.impl.ActionManagerImpl - com.thesba.GeminiPlugin.GeminiPluginTaskAction: action with id "tasks.switch.toolbar" should be instance of com.intellij.openapi.actionSystem.DefaultActionGroup but was class com.intellij.openapi.actionSystem.ActionStub [Plugin: Gemini Task Provider]
com.intellij.diagnostic.PluginException: com.thesba.GeminiPlugin.GeminiPluginTaskAction: action with id "tasks.switch.toolbar" should be instance of com.intellij.openapi.actionSystem.DefaultActionGroup but was class com.intellij.openapi.actionSystem.ActionStub [Plugin: Gemini Task Provider]
at com.intellij.openapi.actionSystem.impl.ActionManagerImpl.reportActionError(ActionManagerImpl.java:915)
Hello,
You need to add plugins\tasks\lib\tasks-core.jar to the classpath of the
IntelliJ IDEA SDK.
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"