1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

JavaDoc enhancement

This commit is contained in:
John Cortell 2009-09-21 16:07:10 +00:00
parent 59fcec1a9c
commit 676f59f8ff

View file

@ -17,9 +17,11 @@ import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.MultiStatus; import org.eclipse.core.runtime.MultiStatus;
/** /**
* Utility class to collect multiple request monitor results of commands * A request monitor that is used for multiple activities. We are told the
* that are initiated simultaneously. The usage is as follows: * number of activities that constitutes completion. When our {@link #done()} is
* <code><pre> * called that many times, the request is considered complete.
*
* The usage is as follows: <code><pre>
* final CountingRequestMonitor countingRm = new CountingRequestMonitor(fExecutor, null) { * final CountingRequestMonitor countingRm = new CountingRequestMonitor(fExecutor, null) {
* public void handleCompleted() { * public void handleCompleted() {
* System.out.println("All complete, errors=" + !getStatus().isOK()); * System.out.println("All complete, errors=" + !getStatus().isOK());
@ -88,9 +90,14 @@ public class CountingRequestMonitor extends RequestMonitor {
/** /**
* Called to indicate that one of the calls using this monitor is finished. * Called to indicate that one of the calls using this monitor is finished.
* Only when <code>done</done> is called the number of times corresponding to the * Only when we've been called the number of times corresponding to the
* count, the request monitor will be considered complete. This method can be * completion count will this request monitor will be considered complete.
* called before {@link #setDoneCount(int)}. * This method can be called before {@link #setDoneCount(int)}; in that
* case, we simply bump the count that tracks the number of times we've been
* called. The monitor will not move into the completed state until after
* {@link #setDoneCount(int)} has been called (or during if the given
* completion count is equal to the number of times {@link #done()} has
* already been called.)
*/ */
@Override @Override
public synchronized void done() { public synchronized void done() {