Add additional action to FileHistoryPanelImpl WITHOUT own VcsProvider

Hi,

As far as I can see there is no way to add an additional action to the FileHistoryPanelImpl (in addToGroup method).

Is that right ?

I see that there is an getAdditionalActions in VcsProvider impl called.

But in my case I want to add a "general" action which works and should be added to all existing VcsProviders (SVN, GIT etc).

Thanks

Reto

2 comments
Comment actions Permalink

Hi,

You can add your action to the "VcsHistoryActionsGroup" action group.

This can be done by addind smth like this to the plugin.xml:

<action id="SomePluginActionID" text="Do Smth">
    <add-to-group group-id="VcsHistoryActionsGroup" anchor="last"/>
</action>

0
Comment actions Permalink

Hi,

Thanks!

It was exactly what I was looking for.

0

Please sign in to leave a comment.