It's all about the answers!

Ask a question

How to get IChangeSet or array of IResource of modified files from DeliverAction.getStructuredSelection()?


Saravanakumar Sakthivel (1123) | asked Mar 01 '13, 2:22 a.m.

How to get IChangeSet or array of IResource of modified files from DeliverAction.getStructuredSelection()?

Please provide a sample code.

One answer



permanent link
Surya Tripathi (65017) | answered Jul 18 '13, 7:46 p.m.
edited Jul 18 '13, 7:47 p.m.
If you have instance of IStructuredSelection, you can try this -
IStructureSelection selection;
List<changesetwrapper> changeSetWrappers = AdapterUtil.adaptList(selection.toList(), ChangeSetWrapper.class)
List<ichangeset> changeSets = CollectionUtil.filterDupes(ChangeSetWrapper.getChangeSets(changeSetWrappers));

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.