monitor.beginTask("Synchronize check against server", 2);
try {
monitorWork(monitor);
boolean tmpInSync = false;
for (IResource resource : getSelectedResources()) {
ProjectService projectService = ContainerDelegate.getInstance().getServiceLocator().getProjectService();
tmpInSync = projectService.isResourceInSync(resource,
new SubProgressMonitor(monitor, 4));
if (!tmpInSync) {
isInSync = false;
}
}