diff options
author | Alexander Kurtakov | 2018-10-30 13:14:34 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2018-10-30 13:14:34 +0000 |
commit | ae43ae1a68fd23451f8d3a05b361c67d48faf43a (patch) | |
tree | 9c65a6edc5f54584de5a78ccfb80f2d09817d1f0 /examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java | |
parent | f584836a72f37bb80c25ea61b7b7a1470d704ebc (diff) | |
download | eclipse.platform.team-ae43ae1a68fd23451f8d3a05b361c67d48faf43a.tar.gz eclipse.platform.team-ae43ae1a68fd23451f8d3a05b361c67d48faf43a.tar.xz eclipse.platform.team-ae43ae1a68fd23451f8d3a05b361c67d48faf43a.zip |
More lambdas (take 3).Y20181030-1100
Change-Id: I7b9c94f440e87fec72499baeb7055a26cd77533f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java')
-rw-r--r-- | examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java index 585b19280..0dee61b2f 100644 --- a/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java +++ b/examples/org.eclipse.compare.examples.xml/src/org/eclipse/compare/examples/xml/XMLCompareEditOrderedDialog.java @@ -18,8 +18,6 @@ import java.util.ArrayList; import org.eclipse.compare.examples.xml.ui.StatusDialog; import org.eclipse.compare.examples.xml.ui.StatusInfo; import org.eclipse.swt.SWT; -import org.eclipse.swt.events.ModifyEvent; -import org.eclipse.swt.events.ModifyListener; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; @@ -87,12 +85,7 @@ public class XMLCompareEditOrderedDialog extends StatusDialog { fElementText= new Text(inner, SWT.BORDER); fElementText.setText(fMapping.getElement()); fElementText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); - fElementText.addModifyListener(new ModifyListener() { - @Override - public void modifyText(ModifyEvent e){ - doValidation(); - } - }); + fElementText.addModifyListener(e -> doValidation()); //Signature label= new Label(inner, SWT.NULL); @@ -104,12 +97,7 @@ public class XMLCompareEditOrderedDialog extends StatusDialog { GridData data= new GridData(GridData.FILL_HORIZONTAL); data.widthHint= convertWidthInCharsToPixels(50); fSignatureText.setLayoutData(data); - fSignatureText.addModifyListener(new ModifyListener() { - @Override - public void modifyText(ModifyEvent e){ - doValidation(); - } - }); + fSignatureText.addModifyListener(e -> doValidation()); fElementText.setFocus(); |