Mercurial > hg4j
comparison src/org/tmatesoft/hg/core/HgStatusHandler.java @ 360:150500515714
Report non-critical errors during status operation to handler/inspector
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Thu, 08 Dec 2011 22:19:27 +0100 |
parents | |
children | 9c9c442b5f2e |
comparison
equal
deleted
inserted
replaced
359:1d9bcab9c50f | 360:150500515714 |
---|---|
1 /* | |
2 * Copyright (c) 2011 TMate Software Ltd | |
3 * | |
4 * This program is free software; you can redistribute it and/or modify | |
5 * it under the terms of the GNU General Public License as published by | |
6 * the Free Software Foundation; version 2 of the License. | |
7 * | |
8 * This program is distributed in the hope that it will be useful, | |
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
11 * GNU General Public License for more details. | |
12 * | |
13 * For information on how to redistribute this software under | |
14 * the terms of a license other than GNU General Public License | |
15 * contact TMate Software at support@hg4j.com | |
16 */ | |
17 package org.tmatesoft.hg.core; | |
18 | |
19 import org.tmatesoft.hg.util.Path; | |
20 import org.tmatesoft.hg.util.Status; | |
21 | |
22 /** | |
23 * Callback to process {@link HgStatus} objects. | |
24 * @author Artem Tikhomirov | |
25 * @author TMate Software Ltd. | |
26 */ | |
27 public interface HgStatusHandler { | |
28 | |
29 /* XXX #next() as in HgChangesetHandler? | |
30 * perhaps, handle() is better name? If yes, rename method in HgChangesetHandler, too, to make them similar. | |
31 * void next(HgStatus s); | |
32 * XXX describe RTE and HgCallbackTargetException | |
33 */ | |
34 void handleStatus(HgStatus s); | |
35 | |
36 /** | |
37 * Report non-critical error processing single file during status operation | |
38 * @param file name of the file that caused the trouble | |
39 * @param s error description object | |
40 */ | |
41 void handleError(Path file, Status s); | |
42 } |