|
Re: Label Expression :: "Unknown EMF Problem" [message #1712507 is a reply to message #1712258] |
Mon, 26 October 2015 08:49 |
|
Hi,
Le 22/10/2015 14:52, Yariv Amar a écrit :
> I have table with Feature Column that has the following label expression:
>
> aql:if self.oclIsTypeOf(myDsl::SomeType) then self.name endif
>
> I would like to show the name attribute only when the line is of type
> SomeType. The above code works well, the table shows what i wanted.
>
> The problem:
> when i click the "Validate Model" on the Sirius Specification Editor, I
> get an Error:
> ErrorExpression my.odesign /my.studio/description Unknown
> EMF Problem
>
>
> What can cause it? how do I fix it?
Are you sure this problem is caused by the expression "aql:if
self.oclIsTypeOf(myDsl::SomeType) then self.name endif"? If you replace
this expression, by a more simple one, do you have always the validation
problem?
>
> Another problem is that if i change the code to be more readable with
> new lines (\n), then the editor replace everything after the first new
> line with "...." and the code is gone (I think it's a bug)!
>
>
> aql:if self.oclIsTypeOf(myDsl::SomeType) then self.name endif
> The above code is replaced with the following (bad) code.
>
> aql:if self.oclIsTypeOf(myDsl::SomeType) ...
>
Could you create a bugzilla [1] for the above "..." case?
>
> I'm using the latest 3.1.0
Best regards,
[1] https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Sirius
--
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Laurent Redor - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02880 seconds