public void execute(IAction action) { IResource[] resources = getSelectedResources();  SVNSynchronizeParticipant participant = (SVNSynchronizeParticipant)SubscriberParticipant.getMatchingParticipant(SVNSynchronizeParticipant.ID, resources);  if (participant == null) { participant = new SVNSynchronizeParticipant(new ResourceScope(resources)); TeamUI.getSynchronizeManager().addSynchronizeParticipants(new ISynchronizeParticipant[] {participant}); } participant.refresh(resources, "Synchronizing", "Synchronizing " + participant.getName(), getTargetPart().getSite());
public void execute(IAction action) throws InterruptedException, InvocationTargetException { if (action != null && !action.isEnabled()) { action.setEnabled(true); } else { IResource[] resources = getSelectedResources();  SVNSynchronizeParticipant participant = (SVNSynchronizeParticipant)SubscriberParticipant.getMatchingParticipant(SVNSynchronizeParticipant.ID, resources);  if (participant == null) { participant = new SVNSynchronizeParticipant(new ResourceScope(resources)); TeamUI.getSynchronizeManager().addSynchronizeParticipants(new ISynchronizeParticipant[] {participant}); }  if(getTargetPart() == null) {  participant.refresh(resources, "Synchronizing", "Synchronizing " + participant.getName(), SVNUIPlugin.getActivePage().getActivePart().getSite()); } else { participant.refresh(resources, "Synchronizing", "Synchronizing " + participant.getName(), getTargetPart().getSite()); } }
	public void execute(IAction action) {		IResource[] resources = getSelectedResources();		// First check if there is an existing matching participant		SVNSynchronizeParticipant participant = (SVNSynchronizeParticipant)SubscriberParticipant.getMatchingParticipant(SVNSynchronizeParticipant.ID, resources);		// If there isn't, create one and add to the manager		if (participant == null) {			participant = new SVNSynchronizeParticipant(new ResourceScope(resources));			TeamUI.getSynchronizeManager().addSynchronizeParticipants(new ISynchronizeParticipant[] {participant});		}		participant.refresh(resources, "Synchronizing", "Synchronizing " + participant.getName(), getTargetPart().getSite());	}