Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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

Please provide a sample code.

0 votes



One answer

Permanent link
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));

0 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,947

Question asked: Mar 01 '13, 2:22 a.m.

Question was seen: 4,313 times

Last updated: Jul 18 '13, 7:47 p.m.

Related questions
Confirmation Cancel Confirm