1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 14 import org.eclipse.core.runtime.Assert; 15 import org.eclipse.team.internal.ccvs.core.*; 16 import org.eclipse.team.internal.ccvs.core.client.Command.LocalOption; 17 18 22 class AddStructureVisitor extends AbstractStructureVisitor { 23 24 public AddStructureVisitor(Session session, LocalOption[] localOptions) { 25 super(session, localOptions, false, true); 26 } 27 28 31 public void visitFile(ICVSFile mFile) throws CVSException { 32 33 sendFolder(mFile.getParent()); 35 36 session.sendIsModified(mFile, true, monitor); 40 41 } 42 43 46 public void visitFolder(ICVSFolder mFolder) throws CVSException { 47 48 Assert.isNotNull(mFolder); 49 50 sendFolder(mFolder.getParent()); 52 53 String localPath = mFolder.getRelativePath(session.getLocalRoot()); 55 String remotePath = mFolder.getRemoteLocation(session.getLocalRoot()); 56 session.sendDirectory(localPath, remotePath); 57 58 recordLastSent(mFolder); 60 } 61 62 } 63 64 | Popular Tags |