blob: ae2b8d4d2f1353213399284029a63317b666c4ee [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2000, 2005 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.core.client;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.ICVSResource;
/**
* Superclass for commands that do not change the structure on
* the local working copy (it can change the content of the files).<br>
* Most of the subclasses are asking the server for response in
* message format (log, status)
*/
abstract class AbstractMessageCommand extends Command {
protected ICVSResource[] sendLocalResourceState(Session session, GlobalOption[] globalOptions,
LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor)
throws CVSException {
// Send all folders that are already managed to the server
new FileStructureVisitor(session, localOptions, false, false).visit(session, resources, monitor);
return resources;
}
}