Skip to main content



      Home
Home » Archived » EPF » [XCore/Xbase] Filtering
[XCore/Xbase] Filtering [message #1018763] Thu, 14 March 2013 08:31
Eclipse UserFriend
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
Previous Topic:[Doubt] - Sql Server Integration
Next Topic:Looking for Part-Time Method/Process Doc/Design Help
Goto Forum:
  


Current Time: Mon Apr 28 16:06:07 EDT 2025

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

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

Back to the top