mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-15 04:05:38 +02:00
Cosmetics.
This commit is contained in:
parent
7cdb3eeeb1
commit
3f48af6991
1 changed files with 18 additions and 24 deletions
|
@ -538,7 +538,6 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
if (fTraceIndexerSetup)
|
||||
System.out.println("Indexer: Creation for project " + name); //$NON-NLS-1$
|
||||
|
||||
|
||||
assert !Thread.holdsLock(fProjectToPDOM);
|
||||
try {
|
||||
synchronized (fUpdatePolicies) {
|
||||
|
@ -864,8 +863,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
}
|
||||
} catch (CoreException e) {
|
||||
CCorePlugin.log(e);
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
finalpdom.releaseWriteLock();
|
||||
}
|
||||
} catch (InterruptedException e) {
|
||||
|
@ -1101,12 +1099,11 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
try {
|
||||
Job.getJobManager().join(this, monitor);
|
||||
return true;
|
||||
} catch (OperationCanceledException e1) {
|
||||
} catch (InterruptedException e1) {
|
||||
} catch (OperationCanceledException e) {
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
return Job.getJobManager().find(this).length == 0;
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
if (th != null) {
|
||||
th.interrupt();
|
||||
}
|
||||
|
@ -1147,7 +1144,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
new Integer(sourceCount), new Integer(sourceEstimate),
|
||||
new Integer(headerCount)});
|
||||
if (detail != null) {
|
||||
msg= msg+ ": " + detail; //$NON-NLS-1$
|
||||
msg += ": " + detail; //$NON-NLS-1$
|
||||
}
|
||||
|
||||
job.subTask(msg);
|
||||
|
@ -1161,7 +1158,6 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
return currentTicks;
|
||||
}
|
||||
|
||||
|
||||
public IWritableIndex getWritableIndex(ICProject project) throws CoreException {
|
||||
return fIndexFactory.getWritableIndex(project);
|
||||
}
|
||||
|
@ -1268,8 +1264,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
while ((read= stream.read(buffer)) >= 0) {
|
||||
out.write(buffer, 0, read);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
out.close();
|
||||
}
|
||||
|
||||
|
@ -1283,8 +1278,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
pdom.reloadFromFile(newFile);
|
||||
storeDatabaseName(project.getProject(), newName);
|
||||
writeProjectPDOMProperties(pdom, project.getProject());
|
||||
}
|
||||
finally {
|
||||
} finally {
|
||||
pdom.releaseWriteLock();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue