Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » WindowBuilder » BugReport(lambda EventHandler)
BugReport [message #1784562] Thu, 29 March 2018 11:19 Go to next message
name name is currently offline name nameFriend
Messages: 3
Registered: March 2018
Junior Member
Hi,

today i found out, that if I replace the following code:
rdbtn.addActionListener(new ActionListener() {
	public void actionPerformed(ActionEvent e) {} });


with this one (Lambda):
rdbtn.addActionListener(e -> {});


Switching to the Design View. Right click on the rdbtn => no event handler.

So the windowBuilder can`t work with Lambda? Is there a new Version somewhere?
I use the Eclipse Oxygen.2 Release (4.7.2) with the WindowBuilder Core 1.9.0.
Re: BugReport [message #1784836 is a reply to message #1784562] Wed, 04 April 2018 15:46 Go to previous messageGo to next message
Eric Clayberg is currently offline Eric ClaybergFriend
Messages: 979
Registered: July 2009
Location: Boston, MA
Senior Member
The WindowBuilder parser does not understand that syntax, so you have to use the older style if you want WindowBuilder to recognize that.

There are no current plans to update the parser to understand that syntax. That said, WindowBuilder is completely open source here at Eclipse, so a patch to extend the WindowBuilder parser to do that would be very welcome.

We are also always looking for folks who would like to become Eclipse committers and contribute to the project.
Re: BugReport [message #1784851 is a reply to message #1784836] Wed, 04 April 2018 19:23 Go to previous message
Avi Abrami is currently offline Avi AbramiFriend
Messages: 29
Registered: December 2017
Junior Member
Eric,
You wrote
Quote:
We are also always looking for folks who would like to become Eclipse committers and contribute to the project.

I downloaded the source code from Git but I don't think it is the entire source code. Where can I get the entire source code?

Thanks.
Previous Topic:Component Orientation Bug
Next Topic:Invisible garbage chars in text input into Eclipse
Goto Forum:
  


Current Time: Fri Nov 16 13:26:51 GMT 2018

Powered by FUDForum. Page generated in 0.02847 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top