|
|
Re: IllegalStateException: Cannot modify resource set without a write transaction [message #415164 is a reply to message #415153] |
Mon, 03 December 2007 15:19 |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Soeren,
The RecordingCommand will not actually create a transaction. It relies on
the TransactionalCommandStack to do that. Is it possible that you're not
actually using your editing domain's command stack to execute the command?
if you have multiple transactional editing domains, is it possible that the
command is trying (perhaps inadvertently) to change objects in another
domain?
HTH,
Christian
Soeren Kemmann wrote:
> Hi there,
>
> when performing a change of my model in a subclassed RecordingCommand I
> get this ugly error:
> IllegalStateException: Cannot modify resource set without a write
> transaction
> The situation in more detail:
> I have a model ModelA, which has the Attribute B.
> I have subclassed RecordingCommand in the way, that I pass ModelA and the
> Attribute B to the new RecordingCommand.
> In the doExecute() method I now just want to do the following:
> ModelA.setB(B)
> ... but I always get this error!?
>
> Has anyone an idea??
>
> Thanks a lot!!
>
> Sren
|
|
|
Powered by
FUDForum. Page generated in 0.04181 seconds