Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39650 > unrolled thread

Can Eclipse provide content assist for lambdas?

Started byGraeme Geldenhuys <graemeg@example.net>
First post2020-11-15 11:47 +0000
Last post2020-11-15 11:47 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer


Contents

  Can Eclipse provide content assist for lambdas? Graeme Geldenhuys <graemeg@example.net> - 2020-11-15 11:47 +0000

#39650 — Can Eclipse provide content assist for lambdas?

FromGraeme Geldenhuys <graemeg@example.net>
Date2020-11-15 11:47 +0000
SubjectCan Eclipse provide content assist for lambdas?
Message-ID<ror4gp$sm9$1@gioia.aioe.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web