1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Fixed inconsistency in use of executor.

This commit is contained in:
Pawel Piech 2009-03-20 21:53:14 +00:00
parent 6bfad895fb
commit 1f8d69201e

View file

@ -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<String[]>(service.getExecutor(), update) {
new ViewerDataRequestMonitor<String[]>(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++;
}