I'm building a plugin that involves analyzing a version control change-list (or rather - a collection of Change events).
Everything works well as long as I'm content in using the default change list, which I can get by
final DataContext dataContext = DataManager.getInstance().getDataContext();
final Project project = DataKeys.PROJECT.getData(dataContext);
final ChangeListManager manager = ChangeListManager.getInstance(project);
final Collection<Change> changes = manager.getDefaultChangeList().getChanges();
How can I get the "current selected" change-list instead?
Note - I'm working inside an "action", so I have access to the action event object.