1 11 package org.eclipse.team.internal.ccvs.core.client; 12 import org.eclipse.team.internal.ccvs.core.*; 13 import org.eclipse.team.internal.ccvs.core.client.Command.LocalOption; 14 import org.eclipse.team.internal.ccvs.core.syncinfo.ResourceSyncInfo; 15 16 22 class DiffStructureVisitor extends FileStructureVisitor { 23 24 public DiffStructureVisitor(Session session, LocalOption[] localOptions) { 25 super(session, localOptions, true, true); 26 } 27 28 31 protected void sendFile(ICVSFile mFile) throws CVSException { 32 byte[] info = mFile.getSyncBytes(); 33 if (info==null) { 34 return; 35 } 36 37 sendFolder(mFile.getParent()); 39 Policy.checkCanceled(monitor); 40 session.sendEntry(info, null); 41 42 if (!mFile.exists()) { 43 return; 44 } 45 46 if (mFile.isModified(null)) { 47 session.sendModified(mFile, ResourceSyncInfo.isBinary(info), monitor); 48 } else { 49 session.sendUnchanged(mFile); 50 } 51 } 52 } 53 | Popular Tags |