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]

4 comments
Comment actions Permalink

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')

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

  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
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

---
Original message URL:
http://devnet.jetbrains.net/message/5301500#5301500


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

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

0
Comment actions Permalink

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)

0
Comment actions Permalink

Hello,

You need to add plugins\tasks\lib\tasks-core.jar to the classpath of the
IntelliJ IDEA SDK.

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


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.