Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java21
1 files changed, 12 insertions, 9 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java
index f7cc45af2..1fdb32f8c 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/actions/breakpoints/EnableBreakpointsAction.java
@@ -245,16 +245,19 @@ public class EnableBreakpointsAction implements IViewActionDelegate, IPartListen
if (shell == null || shell.isDisposed()) {
return;
}
- Runnable r = () -> {
- IWorkbenchWindow ww = getView().getViewSite().getPage().getWorkbenchWindow();
- if (ww == null) {
- return;
- }
- Shell s = ww.getShell();
- if (s == null || s.isDisposed()) {
- return;
+ Runnable r= new Runnable() {
+ @Override
+ public void run() {
+ IWorkbenchWindow ww= getView().getViewSite().getPage().getWorkbenchWindow();
+ if (ww == null) {
+ return;
+ }
+ Shell s= ww.getShell();
+ if (s == null || s.isDisposed()) {
+ return;
+ }
+ update();
}
- update();
};
shell.getDisplay().asyncExec(r);

Back to the top