Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarsten Thoms2017-08-16 20:24:52 +0000
committerAlexander Kurtakov2017-09-06 10:43:46 +0000
commitd8621eaf55a1e95ff894dda0a241af08cc6111fe (patch)
treec25456438000b8f21bfd4173f6910cba71bf138a /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedResourceManager.java
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/internal/ui/stringsubstitution/SelectedResourceManager.java')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedResourceManager.java28
1 files changed, 4 insertions, 24 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedResourceManager.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedResourceManager.java
index e5a4c2449..90f3c9814 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedResourceManager.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/stringsubstitution/SelectedResourceManager.java
@@ -71,12 +71,7 @@ public class SelectedResourceManager {
}
else {
final IStructuredSelection[] selection = new IStructuredSelection[1];
- DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
- @Override
- public void run() {
- selection[0] = getCurrentSelection0();
- }
- });
+ DebugUIPlugin.getStandardDisplay().syncExec(() -> selection[0] = getCurrentSelection0());
return selection[0];
}
}
@@ -126,12 +121,7 @@ public class SelectedResourceManager {
}
else {
final IResource[] resource = new IResource[1];
- DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
- @Override
- public void run() {
- resource[0] = getSelectedResource0();
- }
- });
+ DebugUIPlugin.getStandardDisplay().syncExec(() -> resource[0] = getSelectedResource0());
return resource[0];
}
}
@@ -189,12 +179,7 @@ public class SelectedResourceManager {
}
else {
final String[] text = new String[1];
- DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
- @Override
- public void run() {
- text[0] = getSelectedText0();
- }
- });
+ DebugUIPlugin.getStandardDisplay().syncExec(() -> text[0] = getSelectedText0());
return text[0];
}
}
@@ -241,12 +226,7 @@ public class SelectedResourceManager {
}
else {
final IWorkbenchWindow[] window = new IWorkbenchWindow[1];
- DebugUIPlugin.getStandardDisplay().syncExec(new Runnable() {
- @Override
- public void run() {
- window[0] = DebugUIPlugin.getActiveWorkbenchWindow();
- }
- });
+ DebugUIPlugin.getStandardDisplay().syncExec(() -> window[0] = DebugUIPlugin.getActiveWorkbenchWindow());
return window[0];
}
}

Back to the top