Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 510574

Summary: Lambda code completion proposal for method parameter which are functional interfaces
Product: [Eclipse Project] JDT Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: noopur_gupta
Version: 4.7   
Target Milestone: ---   
Hardware: PC   
OS: All   
Whiteboard:

Description Lars Vogel CLA 2017-01-17 08:28:03 EST
Would be great to have also code completion proposals for method parameters which expects functional interfaces.

Example:

Text text = new Text(parent, SWT.SINGLE | SWT.LEAD | SWT.BORDER);
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
text.addModifyListener(TRIGGER CODE COMPLETION HERE);

Would be great to have the option here to add a lambda expression:

Desired result:
text.addModifyListener(e -> {
		
});

Current workaround is to add the anonymous inner class and use quick fix to convert it.
Comment 1 Noopur Gupta CLA 2017-01-17 09:16:23 EST

*** This bug has been marked as a duplicate of bug 443091 ***