本文整理匯總了Java中com.ibm.team.repository.client.IItemManager類的典型用法代碼示例。如果您正苦於以下問題:Java IItemManager類的具體用法?Java IItemManager怎麽用?Java IItemManager使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IItemManager類屬於com.ibm.team.repository.client包,在下文中一共展示了IItemManager類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: execute
import com.ibm.team.repository.client.IItemManager; //導入依賴的package包/類
public void execute(IProgressMonitor monitor) throws TeamRepositoryException {
if (fItemsToResolve.isEmpty())
return;
try {
addToResolvedList(fManager.fetchCompleteItems(fItemsToResolve, IItemManager.DEFAULT, SubMonitor.convert(monitor, fItemsToResolve.size())));
for (int i= 0; i < fItemsToResolve.size(); i++) {
IItemHandle handle= fItemsToResolve.get(i);
Deferred<IItem> deferred= fDeferreds.get(i);
IItem item= fResolved.get(handle.getItemId());
deferred.onResolved(item, monitor);
}
} finally {
fDeferreds.clear();
fItemsToResolve.clear();
fResolved.clear();
}
}
示例2: fetchCompleteItem
import com.ibm.team.repository.client.IItemManager; //導入依賴的package包/類
@SuppressWarnings("unchecked")
protected <T> T fetchCompleteItem(IItemHandle itemHandle) {
T completeItem = null;
try {
IItemManager itemManager = getTeamRepository().itemManager();
completeItem = (T) itemManager.fetchCompleteItem(itemHandle, ItemManager.DEFAULT, null);
} catch (TeamRepositoryException e) {
e.printStackTrace();
}
return completeItem;
}
示例3: getLastChangeSetUuids
import com.ibm.team.repository.client.IItemManager; //導入依賴的package包/類
private Map<String, String> getLastChangeSetUuids(ITeamRepository repo, IWorkspace sourceWs) {
IWorkspaceConnection sourceWsConnection;
IWorkspaceManager workspaceManager = SCMPlatform.getWorkspaceManager(repo);
IItemManager itemManager = repo.itemManager();
Map<String, String> lastChangeSets = new HashMap<String, String>();
try {
IProgressMonitor monitor = getMonitor();
sourceWsConnection = workspaceManager.getWorkspaceConnection(sourceWs, monitor);
@SuppressWarnings("unchecked")
List<IComponentHandle> componentHandles = sourceWsConnection.getComponents();
@SuppressWarnings("unchecked")
List<IComponent> components = itemManager.fetchCompleteItems(componentHandles, componentHandles.size(),
monitor);
for (IComponent component : components) {
@SuppressWarnings("unchecked")
List<ClientChangeSetEntry> changeSets = sourceWsConnection.changeHistory(component).recent(monitor);
// select first change set if there are any
if (!changeSets.isEmpty()) {
IChangeSetHandle changeSetHandle = changeSets.get(changeSets.size() - 1).changeSet();
lastChangeSets.put(component.getName(), changeSetHandle.getItemId().getUuidValue());
}
}
} catch (TeamRepositoryException e) {
e.printStackTrace(output.getOutputStream());
}
return lastChangeSets;
}