Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Set non-transient value to transient
Set non-transient value to transient [message #1171702] Tue, 05 November 2013 12:23 Go to next message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
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 18:47 Go to previous messageGo to next message
Christian Dietrich is currently online Christian DietrichFriend
Messages: 13661
Registered: July 2009
Senior Member
Hi,

i am not quite sure what this is targeting. but there is a org.eclipse.xtext.serializer.sequencer.ITransientValueService hook.


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/it-services/methods-and-tools/xtext
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Set non-transient value to transient [message #1173809 is a reply to message #1173761] Wed, 06 November 2013 19:29 Go to previous message
Alexander R is currently offline Alexander RFriend
Messages: 211
Registered: July 2013
Senior Member
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: Fri Nov 27 18:57:52 GMT 2020

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

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

Back to the top