diff src/org/tmatesoft/hg/core/HgStatusHandler.java @ 427:31a89587eb04

FIXMEs: consistent names, throws for commands and their handlers. Use of checked exceptions in hi-level api
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 29 Mar 2012 17:14:35 +0200
parents 9c9c442b5f2e
children 36fd1fd06492
line wrap: on
line diff
--- a/src/org/tmatesoft/hg/core/HgStatusHandler.java	Wed Mar 28 19:34:37 2012 +0200
+++ b/src/org/tmatesoft/hg/core/HgStatusHandler.java	Thu Mar 29 17:14:35 2012 +0200
@@ -28,18 +28,20 @@
 @Callback
 public interface HgStatusHandler {
 
-	/** #next() as in HgChangesetHandler?
-	 * FIXME perhaps, handle() is better name? If yes, rename method in HgChangesetHandler, too, to make them similar.
-	 * void next(HgStatus s);
+	/**
+	 * Report status of the next file
+	 * 
+	 * @param s file status descriptor 
 	 * @throws HgCallbackTargetException wrapper for any exception user code may produce
 	 */
-	void handleStatus(HgStatus s) throws HgCallbackTargetException;
+	void status(HgStatus s) throws HgCallbackTargetException;
 
 	/**
 	 * Report non-critical error processing single file during status operation
+	 * 
 	 * @param file name of the file that caused the trouble
 	 * @param s error description object
 	 * @throws HgCallbackTargetException wrapper for any exception user code may produce
 	 */
-	void handleError(Path file, Status s) throws HgCallbackTargetException;
+	void error(Path file, Status s) throws HgCallbackTargetException;
 }