Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2019-08-13 08:19:01 +0000
committerAlexander Kurtakov2019-08-13 08:19:01 +0000
commit7e0cd9a10a1791e56fc400ba253106bf36696141 (patch)
treef707975b7d62cca84e369e042699ccf72ac766d3 /org.eclipse.m2e.binaryproject.ui
parent0e451d10a1f60231ad162914117ef5b4c99cc615 (diff)
downloadm2e-core-7e0cd9a10a1791e56fc400ba253106bf36696141.tar.gz
m2e-core-7e0cd9a10a1791e56fc400ba253106bf36696141.tar.xz
m2e-core-7e0cd9a10a1791e56fc400ba253106bf36696141.zip
Convert to lambda.
Change-Id: Ief08ed5374ad6738109e11a7ee4ebadb891848c3 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.m2e.binaryproject.ui')
-rw-r--r--org.eclipse.m2e.binaryproject.ui/src/org/eclipse/m2e/binaryproject/ui/internal/BinaryProjectImportWizard.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/org.eclipse.m2e.binaryproject.ui/src/org/eclipse/m2e/binaryproject/ui/internal/BinaryProjectImportWizard.java b/org.eclipse.m2e.binaryproject.ui/src/org/eclipse/m2e/binaryproject/ui/internal/BinaryProjectImportWizard.java
index 39a3181c..7ba170f2 100644
--- a/org.eclipse.m2e.binaryproject.ui/src/org/eclipse/m2e/binaryproject/ui/internal/BinaryProjectImportWizard.java
+++ b/org.eclipse.m2e.binaryproject.ui/src/org/eclipse/m2e/binaryproject/ui/internal/BinaryProjectImportWizard.java
@@ -20,9 +20,7 @@ import org.apache.maven.model.Dependency;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.jobs.Job;
-import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
-import org.eclipse.jface.viewers.SelectionChangedEvent;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.m2e.binaryproject.internal.AbstractBinaryProjectsImportJob;
import org.eclipse.m2e.core.embedder.ArtifactKey;
@@ -66,12 +64,7 @@ public class BinaryProjectImportWizard extends Wizard implements IImportWizard {
}
};
artifactsPage.setDependencies(dependencies.toArray(new Dependency[dependencies.size()]));
- artifactsPage.addListener(new ISelectionChangedListener() {
- @Override
- public void selectionChanged(SelectionChangedEvent event) {
- getContainer().updateButtons();
- }
- });
+ artifactsPage.addListener(event -> getContainer().updateButtons());
this.initialDependencies = Collections.unmodifiableList(dependencies);
}

Back to the top