Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Obuchowicz2019-12-20 20:23:24 +0000
committerAndrew Obuchowicz2019-12-20 20:27:17 +0000
commitf0006450b883f1ff70f1de88dcc32c50924b3279 (patch)
treeb3f1f268108e2ae0004a82de19eebe8ca011b36a /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent5b82ccf0240a9efd7c6092354267b571f4abc056 (diff)
downloadeclipse.platform.debug-f0006450b883f1ff70f1de88dcc32c50924b3279.tar.gz
eclipse.platform.debug-f0006450b883f1ff70f1de88dcc32c50924b3279.tar.xz
eclipse.platform.debug-f0006450b883f1ff70f1de88dcc32c50924b3279.zip
Bug 558403 - Use lambda API for LabelProvider
Change-Id: I20dca496bd76d20f2714b3a3a479388d91c6a151 Signed-off-by: Andrew Obuchowicz <aobuchow@redhat.com>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java16
1 files changed, 4 insertions, 12 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
index d49abd01c..42126e026 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/EnvironmentTab.java
@@ -412,12 +412,8 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab {
// Setup environment variable name column
final TableViewerColumn tcv1 = new TableViewerColumn(environmentTable, SWT.NONE, 0);
- tcv1.setLabelProvider(new ColumnLabelProvider() {
- @Override
- public String getText(Object element) {
- return ((EnvironmentVariable) element).getName();
- }
- });
+ tcv1.setLabelProvider(
+ ColumnLabelProvider.createTextProvider(element -> ((EnvironmentVariable) element).getName()));
TableColumn tc1 = tcv1.getColumn();
tc1.setText(envTableColumnHeaders[0]);
@@ -438,12 +434,8 @@ public class EnvironmentTab extends AbstractLaunchConfigurationTab {
// Setup environment variable value column
final TableViewerColumn tcv2 = new TableViewerColumn(environmentTable, SWT.NONE, 1);
- tcv2.setLabelProvider(new ColumnLabelProvider() {
- @Override
- public String getText(Object element) {
- return ((EnvironmentVariable) element).getValue();
- }
- });
+ tcv2.setLabelProvider(
+ ColumnLabelProvider.createTextProvider(element -> ((EnvironmentVariable) element).getName()));
TableColumn tc2 = tcv2.getColumn();
tc2.setText(envTableColumnHeaders[1]);

Back to the top