Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2000, 2010 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.team.internal.ccvs.ui.operations;
import java.util.*;
This operation performs an update that will only affect files that have no conflicts or automergable conflicts.
	private final IProject project;
	public UpdateOnlyMergableOperation(IWorkbenchPart partIProject projectIResource[] resourcesLocalOption[] localOptions) {
		super(partasResourceMappers(resources), localOptions);
		this. = project;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.team.internal.ccvs.ui.operations.SingleCommandOperation#executeCommand(org.eclipse.team.internal.ccvs.core.client.Session, org.eclipse.team.internal.ccvs.core.CVSTeamProvider, org.eclipse.core.resources.IResource[], org.eclipse.core.runtime.IProgressMonitor)
	 */
	protected IStatus executeCommand(Session sessionCVSTeamProvider providerICVSResource[] resourcesboolean recurseIProgressMonitor monitorthrows CVSExceptionInterruptedException {
		IStatus status = update.execute(
			session,
			getLocalOptions(recurse), 
			resources,
			null
			monitor);
		if (status.getSeverity() != .) {
			return ;
		return status;
	}
	/* (non-Javadoc)
	 * @see org.eclipse.team.internal.ccvs.ui.operations.RepositoryProviderOperation#getTaskName()
	 */
	protected String getTaskName() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.team.internal.ccvs.ui.operations.RepositoryProviderOperation#getTaskName(org.eclipse.team.internal.ccvs.core.CVSTeamProvider)
	 */
	protected String getTaskName(CVSTeamProvider provider) {
		return NLS.bind(.new String[] { provider.getProject().getName() }); 
	}
	protected void addSkippedFiles(IFile[] files) {
		.addAll(Arrays.asList(files));
	}
	public IFile[] getSkippedFiles() {
	}
	/* (non-Javadoc)
	 * @see org.eclipse.team.internal.ccvs.ui.operations.UpdateOperation#getResourceMappingContext()
	 */
		return new SingleProjectSubscriberContext(CVSProviderPlugin.getPlugin().getCVSWorkspaceSubscriber(), false);
	}
	protected SynchronizationScopeManager createScopeManager(boolean consultModels) {
	}
New to GrepCode? Check out our FAQ X