|
|
|
Re: transform completeocl resource [message #1016563 is a reply to message #1016376] |
Wed, 06 March 2013 22:48 |
Ed Willink Messages: 7678 Registered: July 2009 |
Senior Member |
|
|
Hi
BaseCSResource xtextResource1 =
createXtextFromURI(metaModelManager1, inputURI);
PivotResource pivotResource1 =
createPivotFromXtext(metaModelManager1, xtextResource1, 1);
should be enough to complete the transformation from text file to pivot
model.
Seve should just work, but if you end up with danging references call
PivotUtil.localizeSpecializations first.
Regards
Ed Willink
On 06/03/2013 09:51, Fernando Ayata wrote:
> Dear Ed,
> Thank you very much for your reply!!
> I find the bin folder and when I run RoundTripTests,
> a Names.regenerated.ocl is generated
> BUT, I would like to find the XMI intermediate file.
> If I understand correctly your code of doRoundTripFromCompleteOCL method,
> I should save the pivot resource, that is right?
> which one?
> pivotResource1? or pivotResource2?
>
> I am sorry for these multiple questions. I am a new user of EMF Xtext
> and EMF technologies :(
>
> Thanks
>
|
|
|
|
|
|
|
|
|
|
Re: transform completeocl resource [message #1017170 is a reply to message #1017168] |
Sun, 10 March 2013 12:32 |
Ed Willink Messages: 7678 Registered: July 2009 |
Senior Member |
|
|
Hi
I'm not convinced that the thread you refer to led to a satisfactory
conclusion for the user.
It was over a year ago and I had forgotten about the associated Bugzilla
371018. The problem of making a Complete OCL XMI document loadable is
much harder than I thought.
See my reply an hour and a half ago on this newsgroup concerning sharing
Complete OCL in other tools.
Can you please post your Names.ocl.pivot and explain how you produced it
so that I can better understand your use case?
Regards
Ed Willink
On 10/03/2013 12:05, Fernando Ayata wrote:
> Dear Ed,
> thank you for reply.
> If I understand correctly, the Pivot Metamodel corresponds to the AST.
> In this topic http://www.eclipse.org/forums/index.php/t/286882/, The
> user try to save the AST also, but he doesn't encounter a similar problem
> (That is why I asked you previously whether my added code is correct
> or not).
> If he doesn't encounter a problem when he uses Acceleo, that means
> that my saved XMI is incorrect.
> I try to modify the abstract attribute for Visitable meta-class in
> Pivot.ecore (true -> false), but I new problem appears which is Error
> loading
> file://Users/ayata/Modeling/workspace_juno_06032013/ocl/tests/org.eclipse.ocl.examples.xtext.tests/bin/org/eclipse/ocl/examples/test/xtext/models/Names.ocl.pivot:
> org.eclipse.emf.ecore.xmi.IllegalValueException: Value '0.0' is not
> legal.
> (file://Users/ayata/Modeling/workspace_juno_06032013/ocl/tests/org.eclipse.ocl.examples.xtext.tests/bin/org/eclipse/ocl/examples/test/xtext/models/Names.ocl.pivot,
> 12, 78)
>
>
> Do you have some ideas about using an completeocl resource by M2M
> technologies?
|
|
|
Powered by
FUDForum. Page generated in 0.03888 seconds