applying Project view actions on custom view

Hi,

I've been tinkering with the MKS (a VCS provider) plugin and added a view to it allowing to see all the unsynchronized files in a current project (currently a JTable with a column for the VirtualFile and another one for the corresponding FileStatus).

This now works fine, but i was wondering if i could make the standard VCS actions menu available for these in order to allow the user to checkin/revert the changes from that view.

Any idea ?

1 comment

Hello Thibaut,

T> I've been tinkering with the MKS (a VCS provider) plugin and added a
T> view to it allowing to see all the unsynchronized files in a current
T> project (currently a JTable with a column for the VirtualFile and
T> another one for the corresponding FileStatus).
T>
T> This now works fine, but i was wondering if i could make the standard
T> VCS actions menu available for these in order to allow the user to
T> checkin/revert the changes from that view.

You can include the standard group with id VersionControlsGroup in the action
group used for building your context menu, and implement the DataProvider
interface to return the data requested by the actions.

--
Dmitry Jemerov
Software Developer
JetBrains, Inc.
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.