Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39650
| Path | csiph.com!aioe.org!QnhDj1eS08EbOOYggLOrCg.user.gioia.aioe.org.POSTED!not-for-mail |
|---|---|
| From | Graeme Geldenhuys <graemeg@example.net> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Can Eclipse provide content assist for lambdas? |
| Date | Sun, 15 Nov 2020 11:47:38 +0000 |
| Organization | Aioe.org NNTP Server |
| Lines | 29 |
| Message-ID | <ror4gp$sm9$1@gioia.aioe.org> (permalink) |
| NNTP-Posting-Host | QnhDj1eS08EbOOYggLOrCg.user.gioia.aioe.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 7bit |
| X-Complaints-To | abuse@aioe.org |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 |
| X-Mozilla-News-Host | news://nntp.aioe.org:119 |
| X-Notice | Filtered by postfilter v. 0.9.2 |
| Content-Language | en-GB |
| Xref | csiph.com comp.lang.java.programmer:39650 |
Show key headers only | View raw
I was writing the code below, and when I got to the line with
clip.addLineListener()
I had my cursor between the parenthesis and pressed Ctrl+Space thinking
that Eclipse could write the lambda template for me, based in the
functional interface in use there. But to my surprise, Eclipse had nothing
to offer. Is there something in Eclipse I need to enable, to get that to
work?
I'm using Eclipse 2020-09 (4.17.0)
=========================
Clip clip = AudioSystem.getClip();
// Open audio clip and load samples from the audio input stream.
clip.open(audioIn);
clip.start();
// Listen for STOP event so we can close the clip, otherwise we will run out of resources
clip.addLineListener(event -> {
if (event.getType().equals(LineEvent.Type.STOP)) {
clip.close();
}
});
=======================
Afterwards, I switched to IntelliJ, and it had not problem in filling
in the lambda template for me.
Regards,
Graeme
Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread
Can Eclipse provide content assist for lambdas? Graeme Geldenhuys <graemeg@example.net> - 2020-11-15 11:47 +0000
csiph-web