Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 300586 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/cdt/dsf/debug/ui/contexts/DsfSuspendTrigger.java (-1 / +18 lines)
Lines 86-95 Link Here
86
        getIsLaunchSuspended(new DataRequestMonitor<Boolean>(ImmediateExecutor.getInstance(), null) {
86
        getIsLaunchSuspended(new DataRequestMonitor<Boolean>(ImmediateExecutor.getInstance(), null) {
87
            @Override
87
            @Override
88
            protected void handleSuccess() {
88
            protected void handleSuccess() {
89
                if (!fDisposed && getData().booleanValue()) {
89
                if (isSuccess() && !fDisposed && getData().booleanValue()) {
90
                    listener.suspended(fLaunch, null);
90
                    listener.suspended(fLaunch, null);
91
                }
91
                }
92
            }
92
            }
93
            @Override
94
            protected void handleErrorOrWarning() {
95
                // Ignore expected race condition and not supported error.
96
                // Log other errors.
97
                if (getStatus().getCode() > IDsfStatusConstants.NOT_SUPPORTED) {
98
                    super.handleErrorOrWarning();
99
                }
100
            }
93
        });
101
        });
94
    }
102
    }
95
103
Lines 133-138 Link Here
133
                    fireSuspended(null);
141
                    fireSuspended(null);
134
                }
142
                }
135
            }
143
            }
144
            
145
            @Override
146
            protected void handleErrorOrWarning() {
147
                // Ignore expected race condition and not supported error.
148
                // Log other errors.
149
                if (getStatus().getCode() > IDsfStatusConstants.NOT_SUPPORTED) {
150
                    super.handleErrorOrWarning();
151
                }
152
            }
136
        });
153
        });
137
    }   
154
    }   
138
    
155
    

Return to bug 300586