|
|
|
Re: [QVTO] Cannot modify resource set without a write transaction [message #657826 is a reply to message #657625] |
Fri, 04 March 2011 09:06 |
Eclipse User |
|
|
|
Originally posted by: koen.yskout.cs.kuleuven.be
Alex,
It looks like the model/resource on which you are trying to execute the
transformation is transactional (e.g., part of a transactional editing
domain). Are you feeding the transformation with a model from some
opened editor (GMF?) ?
This might explain while it works well with an in/out model: the
original (transactional) model is never modified.
I guess you need to obtain the (transactional) editing domain and create
a command that executes your transformation (see for example
http://wiki.eclipse.org/Graphical_Modeling_Framework/Tips#Cr eate_New_Elements_Using_RecordingCommand_and_CanonicalEditPo licies),
although you said in your initial post that you have tried this already...
If you do something else in the command than executing the
transformation (like changing the name of the model root or so), does
that work?
I'm sorry not to be of any more help,
Koen
On 03/03/11 15:05, --alex-- wrote:
> With a dirty trick I managed to solve this problem, however after some
> computations the transformation complains again with the usual
> exception: Cannot modify resource set without a write transaction
>
> I really don't know what I'm doing wrong :(
|
|
|
|
Powered by
FUDForum. Page generated in 0.03486 seconds