[Xtend] Lists in JAVA extensions [message #536729] |
Sun, 30 May 2010 09:31  |
Eclipse User |
|
|
|
Hi there,
for a Java internal calculation, I need to either
* pass a List as parameter to a JAVA extension or
* get a List as return value from a JAVA extension
How do I do those?
The Xtend reference does not say anything about return values of Java
extension methods at all. So how are they handled?
When I try one of these, I always get
"[Callable not found] - getPorts : getPorts"
--- xtend file
Void getPorts(List ports) :
JAVA my.PtolemyHelper.getPorts(java.util.List);
--- java file
public static void getPorts(java.util.List ports){
System.out.println("test");
}
It's the same when I change java.util.List with
org.eclipse.emf.common.util.EList.
So how can I pass an Xtend List to Java? And how could I return a Java
list to Xtend?
Cheers,
Hauke
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04820 seconds