Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Set non-transient value to transient
Set non-transient value to transient [message #1171702] Tue, 05 November 2013 07:23 Go to next message
Eclipse UserFriend
Hello,

I am trying to implement a quickfix for my dsl, where a reference should be set
for a modelelement without writing this assignment in the dsl-file.

Here an example how it should look like in the dsl-file:
 association Has {
owner:Owner;
car:Car;
}


The problem is that I have to set the reference from a property to its owning association. But the user should not do this by hand, so I thougt I can set the references in a Quickfix and everything is fine.
The Quickfix works fine but the serialization fails because of a:
non-transient values but has no corresponding assignment in rule

My question is now: Is it possible to set a non-transient modelelement (here an reference to a owning element) to transient so I can set the references programmatically?

Note: I am importing an exsisting metamodel wich forces this reference to an owning element

Regards,
Alex
Re: Set non-transient value to transient [message #1173761 is a reply to message #1171702] Wed, 06 November 2013 13:47 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

i am not quite sure what this is targeting. but there is a org.eclipse.xtext.serializer.sequencer.ITransientValueService hook.
Re: Set non-transient value to transient [message #1173809 is a reply to message #1173761] Wed, 06 November 2013 14:29 Go to previous message
Eclipse UserFriend
Thanks for the hint!
Previous Topic:Format multiple files at once
Next Topic:Issue with cross-referencing elements of other EMF model
Goto Forum:
  


Current Time: Sat Jul 19 16:49:17 EDT 2025

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

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

Back to the top