Community
Participate
Working Groups
If I convert certain anonymous inner classes to lambda via the quick fix, comments are not preserved. Example with an SWT button button.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Job.create("Update table", new ICoreRunnable() { @Override public void run(IProgressMonitor monitor) throws CoreException { // do something long running // ... // If you want to update the UI System.out.println("Hello"); } }).schedule(); } }); Results in: loadTableDataButton.addSelectionListener(new SelectionAdapter() { @Override public void widgetSelected(SelectionEvent e) { Job.create("Update table", (ICoreRunnable) monitor -> System.out.println("Hello")).schedule(); } });
Moving to UI.
*** This bug has been marked as a duplicate of bug 424266 ***