Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-12-08 10:29:58 -0500
committerAlexander Kurtakov2017-12-08 10:29:58 -0500
commit79bf7f6ece7888d806036282874fb1f1c7d21250 (patch)
tree9e8cb8c811da083f3390dde6fa72ddf4fdf388da /bundles
parente9ec42db30a0fd8b7bf361afddd0e14c3fb3d540 (diff)
downloadeclipse.platform.team-79bf7f6ece7888d806036282874fb1f1c7d21250.tar.gz
eclipse.platform.team-79bf7f6ece7888d806036282874fb1f1c7d21250.tar.xz
eclipse.platform.team-79bf7f6ece7888d806036282874fb1f1c7d21250.zip
Bug 528323 - Modernize o.e.ui.net bundle
Some more lambda conversion. Change-Id: Ia1636e4c92fa81429652b48dc7d8d9a49e76374e Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java21
1 files changed, 3 insertions, 18 deletions
diff --git a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
index c8b5755dc..9315c7bb4 100644
--- a/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
+++ b/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/NonProxyHostsComposite.java
@@ -85,24 +85,9 @@ public class NonProxyHostsComposite extends Composite {
removeButton = createButton(NetUIMessages.ProxyPreferencePage_17);
hostsViewer
- .addSelectionChangedListener(new ISelectionChangedListener() {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- enableButtons();
- }
- });
- hostsViewer.addCheckStateListener(new ICheckStateListener() {
- @Override
- public void checkStateChanged(CheckStateChangedEvent event) {
- setProvider(currentProvider);
- }
- });
- hostsViewer.addDoubleClickListener(new IDoubleClickListener() {
- @Override
- public void doubleClick(DoubleClickEvent event) {
- editSelection();
- }
- });
+ .addSelectionChangedListener(event -> enableButtons());
+ hostsViewer.addCheckStateListener(event -> setProvider(currentProvider));
+ hostsViewer.addDoubleClickListener(event -> editSelection());
addButton.addSelectionListener(new SelectionAdapter() {
@Override
public void widgetSelected(SelectionEvent e) {

Back to the top