1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[300586] Error logged by DsfSuspendTrigger

This commit is contained in:
Pawel Piech 2010-02-01 16:59:29 +00:00
parent 6d906f69c5
commit eff0e4d9ac

View file

@ -86,10 +86,18 @@ public class DsfSuspendTrigger implements ISuspendTrigger {
getIsLaunchSuspended(new DataRequestMonitor<Boolean>(ImmediateExecutor.getInstance(), null) {
@Override
protected void handleSuccess() {
if (!fDisposed && getData().booleanValue()) {
if (isSuccess() && !fDisposed && getData().booleanValue()) {
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);
}
}
@Override
protected void handleErrorOrWarning() {
// Ignore expected race condition and not supported error.
// Log other errors.
if (getStatus().getCode() > IDsfStatusConstants.NOT_SUPPORTED) {
super.handleErrorOrWarning();
}
}
});
}