diff options
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.java | 23 |
1 files changed, 10 insertions, 13 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 1fdb32f8c..87f3696e6 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 @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2013 IBM Corporation and others. + * Copyright (c) 2000, 2018 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -245,19 +245,16 @@ public class EnableBreakpointsAction implements IViewActionDelegate, IPartListen if (shell == null || shell.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(); + Runnable r = () -> { + IWorkbenchWindow ww = getView().getViewSite().getPage().getWorkbenchWindow(); + if (ww == null) { + return; + } + Shell s = ww.getShell(); + if (s == null || s.isDisposed()) { + return; } + update(); }; shell.getDisplay().asyncExec(r); |