How to enter value in plugin .xml?

Hi,

  I want to display version no of the plugin as given in the picture.

 

      i will get the version from:-

"PluginManager.getPlugin(PluginId.getId("com.intellij.STAintellij.intellij_plugin")).getVersion()"

But how will i mention this as the text of plugin
<action id="id" class="com.cloud.STAintellij.Connect"
text="PluginManager.getPlugin(PluginId.getId("com.intellij.STAintellij.intellij_plugin")).getVersion()"
description="Connect">
<add-to-group group-id="CloudGroup" anchor="last"/>
</action>


Please advise.


0
2 comments

`text` attribute of `action` tag is just a text, it cannot contain code. If you really want to append the version to the text, override `update` method and call `anActionEvent.getPresentation().setText(...)` method.

1
Avatar
Permanently deleted user

@Nickolay  It worked .Thanks :)

0

Please sign in to leave a comment.