1 11 package org.eclipse.team.internal.ccvs.core.client; 12 13 14 import java.text.ParseException ; 15 16 import org.eclipse.core.runtime.IProgressMonitor; 17 import org.eclipse.core.runtime.IStatus; 18 import org.eclipse.osgi.util.NLS; 19 import org.eclipse.team.internal.ccvs.core.*; 20 import org.eclipse.team.internal.ccvs.core.util.CVSDateFormatter; 21 22 36 class ModTimeHandler extends ResponseHandler { 37 public String getResponseID() { 38 return "Mod-time"; } 40 41 public void handle(Session session, String timeStamp, 42 IProgressMonitor monitor) throws CVSException { 43 try { 44 session.setModTime(CVSDateFormatter.serverStampToDate(timeStamp)); 45 } catch (ParseException e) { 46 IStatus status = new CVSStatus(IStatus.ERROR,CVSStatus.ERROR,NLS.bind(CVSMessages.ModTimeHandler_invalidFormat, new String [] { timeStamp }), e, session.getLocalRoot()); 47 throw new CVSException(status); 48 } 49 } 50 } 51 52 | Popular Tags |