Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 510574 - Lambda code completion proposal for method parameter which are functional interfaces
Summary: Lambda code completion proposal for method parameter which are functional in...
Status: CLOSED DUPLICATE of bug 443091
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.7   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 08:28 EST by Lars Vogel CLA
Modified: 2017-01-17 09:16 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***