From 46a66d6e5d226ba59ff127f012b7aba021699501 Mon Sep 17 00:00:00 2001 From: John Cortell Date: Mon, 28 Sep 2009 18:06:27 +0000 Subject: [PATCH] Removed extraneous creation of a request monitor. Discussed with Pawel. --- .../ui/viewmodel/numberformat/FormattedValueVMUtil.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java index 610e9873d6c..d97e3e0f720 100644 --- a/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java +++ b/dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/numberformat/FormattedValueVMUtil.java @@ -146,14 +146,14 @@ public class FormattedValueVMUtil { // because it's updated by a request monitor with an ImmediateExecutor. final Map availableFormats = Collections.synchronizedMap(new HashMap(updates.length * 4/3)); final CountingRequestMonitor countingRm = new CountingRequestMonitor( - service.getExecutor(), - new RequestMonitor(service.getExecutor(), monitor) { + service.getExecutor(), monitor) { @Override 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); } - }); + }; int count = 0; // For each update, query the formats available for the update's