1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 14 import org.eclipse.core.runtime.IProgressMonitor; 15 import org.eclipse.osgi.util.NLS; 16 import org.eclipse.team.internal.ccvs.core.*; 17 import org.eclipse.team.internal.ccvs.core.util.Util; 18 19 32 class CheckedInHandler extends ResponseHandler { 33 public String getResponseID() { 34 return "Checked-in"; } 36 37 public void handle(Session session, String localDir, IProgressMonitor monitor) throws CVSException { 38 String repositoryFile = session.readLine(); 40 String entryLine = session.readLine(); 41 42 session.setModTime(null); 44 45 String fileName = repositoryFile.substring(repositoryFile.lastIndexOf("/") + 1); ICVSFolder mParent = session.getLocalRoot().getFolder(localDir); 48 ICVSFile mFile = mParent.getFile(fileName); 49 50 monitor.subTask(NLS.bind(CVSMessages.CheckInHandler_checkedIn, new String [] { Util.toTruncatedPath((ICVSResource)mFile, session.getLocalRoot(), 3) })); 52 mFile.checkedIn(entryLine, session.getCurrentCommand() instanceof Commit); 53 } 54 } 55 56 | Popular Tags |