Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-08-16 16:24:52 -0400
committerAlexander Kurtakov2017-09-06 06:43:46 -0400
commitd8621eaf55a1e95ff894dda0a241af08cc6111fe (patch)
treec25456438000b8f21bfd4173f6910cba71bf138a /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent1ac7a50083b25934db5e4902343c7a186435763b (diff)
downloadeclipse.platform.debug-d8621eaf55a1e95ff894dda0a241af08cc6111fe.tar.gz
eclipse.platform.debug-d8621eaf55a1e95ff894dda0a241af08cc6111fe.tar.xz
eclipse.platform.debug-d8621eaf55a1e95ff894dda0a241af08cc6111fe.zip
Bug 521038 - Replaced anonymous Runnable classes by lambda expressionI20170906-2000I20170906-0815
Change-Id: Ia0d3478be72f514cce6e57cb679fa60668bdb23f Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RunToLineAction.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RunToLineAction.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RunToLineAction.java
index b8e18b8cf..e7ee094ca 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RunToLineAction.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/actions/RunToLineAction.java
@@ -170,13 +170,7 @@ public class RunToLineAction extends Action implements IUpdate {
*/
@Override
public void update() {
- Runnable r = new Runnable() {
- @Override
- public void run() {
- setEnabled(isTargetEnabled());
- }
- };
- DebugUIPlugin.getStandardDisplay().asyncExec(r);
+ DebugUIPlugin.getStandardDisplay().asyncExec(() -> setEnabled(isTargetEnabled()));
}
private boolean isTargetEnabled() {

Back to the top