Another vcs history question...
I'm implementing an additional action that is returned via VcsHistoryProvider.getAdditionalActions
What I'd like this action to do, in part, is get the selected revisions from the revision list. For example, this action is only applicable when 1 or 2 revisions are selected (just like the "compare" action). Therefore as part of the code I would like to evaluate the number of selected objects and eventually use those objects in my plugin.
How might I go about doing this? The only applicable DataKey I've found so far is VcsDataKeys.VCS_FILE_REVISION, but that only returns one VcsFileRevision object, not an array representing all selections.
I've also tried to get at the data via AnActionEvent.getData(DataKeys.CONTEXT_COMPONENT), which returns a DualView object with getSelection() returning a list, however I'm getting a CastClassException trying the following:
Error message: java.lang.ClassCastException: com.intellij.ui.dualView.DualView$5 cannot be cast to com.intellij.ui.dualView.DualView
I'm heading down the wrong path it seems.