[Galileo, XPAND] Plugin missing? [message #870656] |
Wed, 09 May 2012 09:06 |
Ricardo Ben Amor Messages: 51 Registered: March 2012 |
Member |
|
|
Good morning,
In my project, i'm calling a lot of XTEND function which provide for an co-workers in my company.
When i'm adding their file in my project, almost all files work perfectly. But one of them have an error in a function.
("GetOneObject_AutosarElementOnBaseObjectRef Error: Object of type: "+ObjectRefDestType+" with ref: "+"'"+ObjectReference+"'"+" could not be found").error()->
ObjectFound;
The expression ".error()" have an error. It says : « Couldn't find operation 'error()' for type 'string' ».
I'm thinking, that maybe i have a missing plugin which contain this expression?
Regards,
[Updated on: Wed, 09 May 2012 09:23] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
Re: [Galileo, XPAND] Plugin missing? [message #870874 is a reply to message #870792] |
Thu, 10 May 2012 07:01 |
Ricardo Ben Amor Messages: 51 Registered: March 2012 |
Member |
|
|
Hi,
Here my code. All my extension file are include correctly, there is no problem. The last one is with the expression erro like I say.
/*Import MetaModel from XSD Schema*/
import autosar;
/*Include OAW Utility Library*/
/*extension org::openarchitectureware::util::stdlib::io;*/
/*Include AUTOSAR XTend Library*/
extension AR_ArPackages;
extension AR_ComponentPrototype;
/*Include Utility Xtend Library*/
extension Utility_Library;
cached Object GetOneObject_AutosarElementOnBaseObjectRef(String ObjectReference,
String ObjectRefDestType,
Autosar a):
let DummyArPackage = (ArPackage)null:
let ObjectFound = GetObject_OneAutosarElementOnBaseObjectRef(a,DummyArPackage,ObjectReference,ObjectRefDestType, 0):
ObjectFound != null?
ObjectFound
:
("GetOneObject_AutosarElementOnBaseObjectRef Error: Object of type: "+ObjectRefDestType+" with ref: "+"'"+ObjectReference+"'"+" could not be found").internalError()->
ObjectFound;
Regards
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04451 seconds