mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Removed extraneous creation of a request monitor. Discussed with Pawel.
This commit is contained in:
parent
cb647d08f0
commit
46a66d6e5d
1 changed files with 4 additions and 4 deletions
|
@ -146,14 +146,14 @@ public class FormattedValueVMUtil {
|
||||||
// because it's updated by a request monitor with an ImmediateExecutor.
|
// because it's updated by a request monitor with an ImmediateExecutor.
|
||||||
final Map<IPropertiesUpdate, String[]> availableFormats = Collections.synchronizedMap(new HashMap<IPropertiesUpdate, String[]>(updates.length * 4/3));
|
final Map<IPropertiesUpdate, String[]> availableFormats = Collections.synchronizedMap(new HashMap<IPropertiesUpdate, String[]>(updates.length * 4/3));
|
||||||
final CountingRequestMonitor countingRm = new CountingRequestMonitor(
|
final CountingRequestMonitor countingRm = new CountingRequestMonitor(
|
||||||
service.getExecutor(),
|
service.getExecutor(), monitor) {
|
||||||
new RequestMonitor(service.getExecutor(), monitor) {
|
|
||||||
@Override
|
@Override
|
||||||
protected void handleCompleted() {
|
protected void handleCompleted() {
|
||||||
// retrieve the formatted values now that we have the available formats (where needed)
|
// Retrieve the formatted values now that we have the available formats (where needed).
|
||||||
|
// Note that we are passing off responsibility of our parent monitor
|
||||||
updateFormattedValuesWithAvailableFormats(updates, service, dmcType, availableFormats, monitor);
|
updateFormattedValuesWithAvailableFormats(updates, service, dmcType, availableFormats, monitor);
|
||||||
}
|
}
|
||||||
});
|
};
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|
||||||
// For each update, query the formats available for the update's
|
// For each update, query the formats available for the update's
|
||||||
|
|
Loading…
Add table
Reference in a new issue