if (containerMap.isEmpty())
return null;
boolean launchFetch = Activator.getDefault().getPreferenceStore()
.getBoolean(UIPreferences.SYNC_VIEW_FETCH_BEFORE_LAUNCH);
GitSynchronizeDataSet gsdSet = new GitSynchronizeDataSet();
for (Entry<Repository, Set<IResource>> entry : containerMap.entrySet())
try {
Repository repo = entry.getKey();
String dstRef = getDstRef(repo, launchFetch);
GitSynchronizeData data = new GitSynchronizeData(repo, HEAD, dstRef, true);
Set<IResource> containers = entry.getValue();
if (!containers.isEmpty())
data.setIncludedResources(containers);
gsdSet.add(data);
} catch (IOException e) {
Activator.handleError(e.getMessage(), e, true);
}
GitModelSynchronize.launch(gsdSet, getSelectedResources(event));