1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Cosmetics.

This commit is contained in:
Sergey Prigogin 2014-04-22 11:37:13 -07:00
parent 7593d5ee98
commit 54fd5d6cd0

View file

@ -30,7 +30,7 @@ public class PDOMIndexerJob extends Job {
* Job updating the progress monitor of the indexer job.
*/
final class ProgressUpdateJob extends Job {
private boolean fStopped= false;
private boolean fStopped;
private ProgressUpdateJob() {
super(CCorePlugin.getResourceString("PDOMIndexerJob.updateMonitorJob")); //$NON-NLS-1$
@ -40,7 +40,7 @@ public class PDOMIndexerJob extends Job {
@Override
protected IStatus run(IProgressMonitor m) {
int currentTick= 0;
while(!fStopped && !m.isCanceled()) {
while (!fStopped && !m.isCanceled()) {
currentTick= pdomManager.getMonitorMessage(PDOMIndexerJob.this, currentTick, TOTAL_MONITOR_WORK);
try {
Thread.sleep(PROGRESS_UPDATE_INTERVAL);
@ -115,13 +115,13 @@ public class PDOMIndexerJob extends Job {
currentTask= null;
taskMutex.notifyAll();
// user cancel, tell manager and return
// User cancel, tell manager and return.
if (monitor.isCanceled()) {
pdomManager.cancelledIndexerJob(cancelledByManager);
return Status.CANCEL_STATUS;
}
// pick up new task
// Pick up new task.
currentTask= pdomManager.getNextTask();
}