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 4a496c3a3b8..bdfc40acc34 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 @@ -128,10 +128,7 @@ public class FormattedValueVMUtil { service.getAvailableFormats( dmc, - // Use the ViewerDataRequestMonitor in order to propagate the update's cancel request. But this means that - // we have to override the handleRequestedExecutionException() to guarantee that the caller's RM gets - // completed even when the service session has been shut down. - new ViewerDataRequestMonitor(service.getExecutor(), update) { + new ViewerDataRequestMonitor(ImmediateExecutor.getInstance(), update) { @Override protected void handleCompleted() { if (isSuccess()) { @@ -142,12 +139,6 @@ public class FormattedValueVMUtil { } countingRm.done(); } - - @Override - protected void handleRejectedExecutionException() { - countingRm.setStatus(DsfUIPlugin.newErrorStatus(IDsfStatusConstants.INVALID_STATE, "Request for monitor: '" + toString() + "' resulted in a rejected execution exception.", null)); //$NON-NLS-1$//$NON-NLS-2$ - countingRm.done(); - } }); count++; }