Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2019-06-21 08:59:28 +0000
committerLars Vogel2019-06-21 09:36:29 +0000
commit8b4ed4f66f68932f9c2bd141ea8dfcc3dc1c9cdf (patch)
tree62efeebcc8769aa954e7f01271f2608daa1b4800 /org.eclipse.debug.ui/ui/org/eclipse/debug/ui
parent28eafb0f03d500dd162f2151845d2644cfc5ab5c (diff)
downloadeclipse.platform.debug-8b4ed4f66f68932f9c2bd141ea8dfcc3dc1c9cdf.tar.gz
eclipse.platform.debug-8b4ed4f66f68932f9c2bd141ea8dfcc3dc1c9cdf.tar.xz
eclipse.platform.debug-8b4ed4f66f68932f9c2bd141ea8dfcc3dc1c9cdf.zip
Lamba optimization
Use method references if possible Remove unnecessary brackets Change-Id: I82c219171f7b3e459d4e2f70ae916d44d25fdc11 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.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/AbstractDebugView.java2
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
index 073504821..fe10bfdd5 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/AbstractDebugView.java
@@ -557,7 +557,7 @@ public abstract class AbstractDebugView extends PageBookView implements IDebugVi
protected void createContextMenu(Control menuControl) {
MenuManager menuMgr= new MenuManager("#PopUp"); //$NON-NLS-1$
menuMgr.setRemoveAllWhenShown(true);
- menuMgr.addMenuListener(mgr -> fillContextMenu(mgr));
+ menuMgr.addMenuListener(this::fillContextMenu);
Menu menu= menuMgr.createContextMenu(menuControl);
menuControl.setMenu(menu);
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java
index 75928a8ba..21e0887d0 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/ui/memory/AbstractTableRendering.java
@@ -1139,7 +1139,7 @@ public abstract class AbstractTableRendering extends AbstractBaseTableRendering
};
fTableCursor.addKeyListener(fCursorKeyAdapter);
- fCursorTraverseListener = e -> handleCursorTraverseEvt(e);
+ fCursorTraverseListener = this::handleCursorTraverseEvt;
fTableCursor.addTraverseListener(fCursorTraverseListener);

Back to the top