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:
parent
6bfad895fb
commit
1f8d69201e
1 changed files with 1 additions and 10 deletions
|
@ -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++;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue