[XCore/Xbase] Filtering [message #1018763] |
Thu, 14 March 2013 08:31 |
Eclipse User |
|
|
|
Hi,
I am trying to do something like this in my XCore source file
class A {
//some code
}
class B extends A {
//more code
}
class C {
contains A[] collection
op B[] filterB() {
return collection.filter(B)
}
}
The editor complains that it does not know class B. So how do I reference a class from my XCore file in Xbase code?
Another problem is that filter() returns Iterable but I have to return EList from filterB. How do I convert the former one to the later?
Is there any documentation of xbase that would describe how the xbase can be used with xcore?
Thanks in advance
|
|
|
Powered by
FUDForum. Page generated in 0.03258 seconds