1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 14 import java.util.HashSet ; 15 import java.util.Set ; 16 17 import org.eclipse.team.internal.ccvs.core.CVSException; 18 import org.eclipse.team.internal.ccvs.core.ICVSFile; 19 import org.eclipse.team.internal.ccvs.core.client.Command.LocalOption; 20 21 24 class ModifiedFileSender extends FileStructureVisitor { 25 26 private final Set modifiedFiles; 27 28 public ModifiedFileSender(Session session, LocalOption[] localOptions) { 29 super(session, localOptions, false, true); 30 modifiedFiles = new HashSet (); 31 } 32 33 36 protected void sendFile(ICVSFile mFile) throws CVSException { 37 if (mFile.isManaged() && mFile.isModified(null)) { 39 super.sendFile(mFile); 40 modifiedFiles.add(mFile); 41 } 42 } 43 44 protected String getSendFileMessage() { 45 return null; 46 } 47 48 51 public ICVSFile[] getModifiedFiles() { 52 return (ICVSFile[]) modifiedFiles.toArray(new ICVSFile[modifiedFiles.size()]); 53 } 54 } 55 | Popular Tags |