| Summary: | Lambda code completion proposal for method parameter which are functional interfaces | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Lars Vogel <Lars.Vogel> |
| Component: | UI | Assignee: | 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: | |||
*** This bug has been marked as a duplicate of bug 443091 *** |
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.