如何找到工作项更改集详细说明普通java api?

时间:2018-03-26 11:02:34

标签: java api rtc

我正在使用下面的代码并返回跟踪更改链接的数量,我确信它也包含更改集但是我无法找到正确的api来获取该数据。请帮忙

IReference reference = linkManager.referenceFactory().createReferenceToItem(workItem.getItemHandle());
ILinkQueryPage childPage;

childPage = linkManager.findLinks(reference, monitor);
ILinkCollection linkCollection = childPage.getAllLinksFromHereOn();
Collection<ILink> links1 = linkCollection.getLinksById("com.ibm.team.workitem.linktype.scm.tracksChanges");

for (Object wI : links1) {
    ILink link = (ILink) wI;
    Object source = link.getSourceRef().resolve();
    IItemHandle itemHandle = (IItemHandle) link.getSourceRef().resolve();

    if (source instanceof IChangeSetHandle) {
        changeSet = (IChangeSet) repo.itemManager().fetchCompleteItem(itemHandle,
            IItemManager.DEFAULT, monitor);
        System.out.println("changeset---1"+changeSet);
    }
}

0 个答案:

没有答案