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.
Please sign in to leave a comment.
`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.
@Nickolay It worked .Thanks :)