mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-05 16:56:04 +02:00
[300586] Error logged by DsfSuspendTrigger
This commit is contained in:
parent
6d906f69c5
commit
eff0e4d9ac
1 changed files with 18 additions and 1 deletions
|
@ -86,10 +86,18 @@ public class DsfSuspendTrigger implements ISuspendTrigger {
|
||||||
getIsLaunchSuspended(new DataRequestMonitor<Boolean>(ImmediateExecutor.getInstance(), null) {
|
getIsLaunchSuspended(new DataRequestMonitor<Boolean>(ImmediateExecutor.getInstance(), null) {
|
||||||
@Override
|
@Override
|
||||||
protected void handleSuccess() {
|
protected void handleSuccess() {
|
||||||
if (!fDisposed && getData().booleanValue()) {
|
if (isSuccess() && !fDisposed && getData().booleanValue()) {
|
||||||
listener.suspended(fLaunch, null);
|
listener.suspended(fLaunch, null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@Override
|
||||||
|
protected void handleErrorOrWarning() {
|
||||||
|
// Ignore expected race condition and not supported error.
|
||||||
|
// Log other errors.
|
||||||
|
if (getStatus().getCode() > IDsfStatusConstants.NOT_SUPPORTED) {
|
||||||
|
super.handleErrorOrWarning();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -133,6 +141,15 @@ public class DsfSuspendTrigger implements ISuspendTrigger {
|
||||||
fireSuspended(null);
|
fireSuspended(null);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
protected void handleErrorOrWarning() {
|
||||||
|
// Ignore expected race condition and not supported error.
|
||||||
|
// Log other errors.
|
||||||
|
if (getStatus().getCode() > IDsfStatusConstants.NOT_SUPPORTED) {
|
||||||
|
super.handleErrorOrWarning();
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue