It's all about the answers!

Ask a question

How to get the source code change content as shown in the compare view by Java API?


Jia Jia Li (8057152192) | asked Apr 27 '15, 10:21 a.m.
edited Apr 27 '15, 11:22 a.m. by Ralph Schoon (63.1k33645)
When click the change set file item in the Eclipse client, the compare view open and show which line is modified or added or deleted, how can I get such information via SDK API?
I guess I can use the IChangeset or IVersionedContent?
Any sample code for this requirement? Thanks!

One answer



permanent link
Surya Tripathi (65017) | answered May 08 '15, 10:27 p.m.
RTC SCM compare uses built in Eclipse compare. Please check this out -
https://wiki.eclipse.org/FAQ_How_do_I_create_a_compare_editor%3F

You can supply inputs to nodes using com.ibm.team.filesystem.common.IFileItem.getContent()

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.