Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EPF » [XCore/Xbase] Filtering
[XCore/Xbase] Filtering [message #1018763] Thu, 14 March 2013 12:31
Martin  odloucký is currently offline Martin odlouckýFriend
Messages: 49
Registered: July 2010
Member
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: Fri Apr 19 09:40:17 GMT 2024

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

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

Back to the top