1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 IBM Corporation and others. 3 * 4 * This program and the accompanying materials 5 * are made available under the terms of the Eclipse Public License 2.0 6 * which accompanies this distribution, and is available at 7 * https://www.eclipse.org/legal/epl-2.0/ 8 * 9 * SPDX-License-Identifier: EPL-2.0 10 * 11 * Contributors: 12 * IBM Corporation - initial API and implementation 13 *******************************************************************************/ 14 package org.eclipse.team.internal.ccvs.core.client; 15 16 17 import org.eclipse.core.runtime.IProgressMonitor; 18 import org.eclipse.team.internal.ccvs.core.CVSException; 19 import org.eclipse.team.internal.ccvs.core.ICVSResource; 20 21 /** 22 * Superclass for commands that do not change the structure on 23 * the local working copy (it can change the content of the files).<br> 24 * Most of the subclasses are asking the server for response in 25 * message format (log, status) 26 */ 27 abstract class AbstractMessageCommand extends Command { 28 sendLocalResourceState(Session session, GlobalOption[] globalOptions, LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor)29 protected ICVSResource[] sendLocalResourceState(Session session, GlobalOption[] globalOptions, 30 LocalOption[] localOptions, ICVSResource[] resources, IProgressMonitor monitor) 31 throws CVSException { 32 33 // Send all folders that are already managed to the server 34 new FileStructureVisitor(session, localOptions, false, false).visit(session, resources, monitor); 35 return resources; 36 } 37 38 } 39 40