revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override"), Policy.bind("SyncAction.override.confirm"));
revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override.title"), Policy.bind("SyncAction.override.confirm"));
	protected void run(SVNTeamProvider provider, SyncInfoSet set, IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {		if (!revertAndUpdate) return;		if (!prompted) {			getShell().getDisplay().syncExec(new Runnable() {				public void run() {					revertAndUpdate = MessageDialog.openQuestion(getShell(), Policy.bind("SyncAction.override"), Policy.bind("SyncAction.override.confirm"));				}			});			prompted = true;		}		if (!revertAndUpdate) return;		IResource[] modifiedResourceArray = extractResources(modifiedResources, set);		IResource[] resourceArray = extractResources(resources, set);		if (modifiedResourceArray != null && modifiedResourceArray.length > 0) { 			monitor.beginTask(null, 100);			try {				new RevertResourcesCommand(provider.getSVNWorkspaceRoot(),modifiedResourceArray).run(Policy.subMonitorFor(monitor,100));			} catch (SVNException e) {			    collectStatus(e.getStatus());			} finally {	            monitor.done();			}		}		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();		}	}