| /******************************************************************************* |
| * Copyright (c) 2000, 2003 IBM Corporation and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Common Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/cpl-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, false, false).visit(session, resources, monitor); |
| return resources; |
| } |
| |
| } |
| |