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[LaunchConfiguration.java:739]
at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch[DebugUIPlugin.java:1039]
at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run[DebugUIPlugin.java:1256]
at org.eclipse.core.internal.jobs.Worker.run[Worker.java:55]
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
Y.Ali
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: 1520
Registered: July 2009
Location: York, UK
Senior Member

Hi,

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

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


Current Time: Fri Apr 20 11:06:34 GMT 2018

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

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