mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Cosmetics.
This commit is contained in:
parent
7593d5ee98
commit
54fd5d6cd0
1 changed files with 4 additions and 4 deletions
|
@ -30,7 +30,7 @@ public class PDOMIndexerJob extends Job {
|
||||||
* Job updating the progress monitor of the indexer job.
|
* Job updating the progress monitor of the indexer job.
|
||||||
*/
|
*/
|
||||||
final class ProgressUpdateJob extends Job {
|
final class ProgressUpdateJob extends Job {
|
||||||
private boolean fStopped= false;
|
private boolean fStopped;
|
||||||
|
|
||||||
private ProgressUpdateJob() {
|
private ProgressUpdateJob() {
|
||||||
super(CCorePlugin.getResourceString("PDOMIndexerJob.updateMonitorJob")); //$NON-NLS-1$
|
super(CCorePlugin.getResourceString("PDOMIndexerJob.updateMonitorJob")); //$NON-NLS-1$
|
||||||
|
@ -40,7 +40,7 @@ public class PDOMIndexerJob extends Job {
|
||||||
@Override
|
@Override
|
||||||
protected IStatus run(IProgressMonitor m) {
|
protected IStatus run(IProgressMonitor m) {
|
||||||
int currentTick= 0;
|
int currentTick= 0;
|
||||||
while(!fStopped && !m.isCanceled()) {
|
while (!fStopped && !m.isCanceled()) {
|
||||||
currentTick= pdomManager.getMonitorMessage(PDOMIndexerJob.this, currentTick, TOTAL_MONITOR_WORK);
|
currentTick= pdomManager.getMonitorMessage(PDOMIndexerJob.this, currentTick, TOTAL_MONITOR_WORK);
|
||||||
try {
|
try {
|
||||||
Thread.sleep(PROGRESS_UPDATE_INTERVAL);
|
Thread.sleep(PROGRESS_UPDATE_INTERVAL);
|
||||||
|
@ -115,13 +115,13 @@ public class PDOMIndexerJob extends Job {
|
||||||
currentTask= null;
|
currentTask= null;
|
||||||
taskMutex.notifyAll();
|
taskMutex.notifyAll();
|
||||||
|
|
||||||
// user cancel, tell manager and return
|
// User cancel, tell manager and return.
|
||||||
if (monitor.isCanceled()) {
|
if (monitor.isCanceled()) {
|
||||||
pdomManager.cancelledIndexerJob(cancelledByManager);
|
pdomManager.cancelledIndexerJob(cancelledByManager);
|
||||||
return Status.CANCEL_STATUS;
|
return Status.CANCEL_STATUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
// pick up new task
|
// Pick up new task.
|
||||||
currentTask= pdomManager.getNextTask();
|
currentTask= pdomManager.getNextTask();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue