Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-09-08 03:12:28 -0400
committerAlexander Kurtakov2017-09-08 03:12:51 -0400
commitb3c56b7f12d085ef7a40b169876746c16871d8c6 (patch)
tree05d941656f31ec643c278002abf8518f37466a41 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parentfa2b847f155ce5cc60fac6a40a39aae766823467 (diff)
downloadeclipse.platform.debug-b3c56b7f12d085ef7a40b169876746c16871d8c6.tar.gz
eclipse.platform.debug-b3c56b7f12d085ef7a40b169876746c16871d8c6.tar.xz
eclipse.platform.debug-b3c56b7f12d085ef7a40b169876746c16871d8c6.zip
Revert "Bug 521038 - Replaced anonymous Runnable classes by lambda expression"
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, 7 insertions, 1 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 e7ee094ca..b8e18b8cf 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,7 +170,13 @@ public class RunToLineAction extends Action implements IUpdate {
*/
@Override
public void update() {
- DebugUIPlugin.getStandardDisplay().asyncExec(() -> setEnabled(isTargetEnabled()));
+ Runnable r = new Runnable() {
+ @Override
+ public void run() {
+ setEnabled(isTargetEnabled());
+ }
+ };
+ DebugUIPlugin.getStandardDisplay().asyncExec(r);
}
private boolean isTargetEnabled() {

Back to the top