}); if (!revertAndUpdate) return; if (modifiedResources != null && modifiedResources.length > 0) new RevertOperation(getPart(), modifiedResources).run(); new UpdateOperation(getPart(), resources, SVNRevision.HEAD, true).run();
} SVNRevision revision = null; SyncInfo[] syncInfos = set.getSyncInfos(); for (int i = 0; i < syncInfos.length; i++) { SVNStatusSyncInfo syncInfo = (SVNStatusSyncInfo)syncInfos[i]; IResourceVariant remote = syncInfo.getRemote(); if (remote != null && remote instanceof ISVNRemoteResource) { SVNRevision rev = ((ISVNRemoteResource)remote).getLastChangedRevision(); if (rev instanceof SVNRevision.Number) { long nbr = ((SVNRevision.Number)rev).getNumber(); if (revision == null) revision = rev; else { long revisionNumber = ((SVNRevision.Number)revision).getNumber(); if (nbr > revisionNumber) revision = rev; } } } } if (revision == null) revision = SVNRevision.HEAD; monitor.beginTask(null, 100); try { SVNWorkspaceSubscriber.getInstance().updateRemote(resourceArray); UpdateResourcesCommand command = new UpdateResourcesCommand(provider.getSVNWorkspaceRoot(),resourceArray, revision, true); command.run(Policy.subMonitorFor(monitor,100)); } catch (SVNException e) { collectStatus(e.getStatus()); } catch (TeamException e) { collectStatus(e.getStatus()); } finally { monitor.done(); }
	protected void run(SVNTeamProvider provider, SyncInfoSet set, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {		getShell().getDisplay().syncExec(new Runnable() {			public void run() {				revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override"), Policy.bind("SyncAction.override.confirm"));			}		});		if (!revertAndUpdate) return;		if (modifiedResources != null && modifiedResources.length > 0) new RevertOperation(getPart(), modifiedResources).run();		new UpdateOperation(getPart(), resources, SVNRevision.HEAD, true).run();	}