Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Epsilon » Native Types in EOL(The implementation of EventListeners or listeners for buttons)
Native Types in EOL [message #1750374] Tue, 20 December 2016 13:47 Go to next message
Yakub Mohamoud is currently offline Yakub MohamoudFriend
Messages: 1
Registered: December 2016
Junior Member
Hello there.

I have tried to implement a GUI using EOL and in most part has been very successful. However, I would like to set up a button and use an ActionListener to allow me to set up a registration form. My question is when I used the following code in EOL : var Action = new Native ("java.util.EventListener");
I get the following error:

at org.eclipse.debug.internal.core.LaunchConfiguration.launch[]
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch[]
at org.eclipse.debug.internal.ui.DebugUIPlugin$[]
Caused by: java.lang.NoSuchMethodException: java.util.EventListener.<init>[]
at java.lang.Class.getConstructor0[Unknown Source]
... 19 more

My assumption is that EOL does not support all of Java's native imports meaning we are restricted to only certain ones.
Thank you
Re: Native Types in EOL [message #1750395 is a reply to message #1750374] Tue, 20 December 2016 16:44 Go to previous message
Dimitris Kolovos is currently offline Dimitris KolovosFriend
Messages: 1612
Registered: July 2009
Location: York, UK
Senior Member


It appears that java.util.EventListener is an interface, and as such it cannot be instantiated (in Java or EOL).

Previous Topic:Incremental Transformation
Next Topic:How Can I change the icons on pop-up tool palette with Eugenia?
Goto Forum:

Current Time: Fri Nov 16 17:44:41 GMT 2018

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

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

Back to the top