java.lang.IllegalStateException: Cannot modify resource set without a write tran [message #126337] |
Tue, 15 May 2007 02:52  |
Eclipse User |
|
|
|
Originally posted by: bhatia1984.yahoo.com
hiiii
i have created a drop down in my properties view in which i am adding the
diagramelemnts of another editor.
now i select a diagram element from drop down for a node & save it , it
gets saved.
after saving when i again click on the node for which i have set the
diagram element from drop down earlier i get :
java.lang.IllegalStateException: Cannot modify resource set without a
write transaction
THIS IS HAPPEHINH WHEN I TRY TO RETRIVE THE SAVE CONTENT FROM MY MODEL.
THANKS
Varun Bhatia
|
|
|
Re: java.lang.IllegalStateException: Cannot modify resource set without a write tran [message #126594 is a reply to message #126337] |
Tue, 15 May 2007 09:32  |
Eclipse User |
|
|
|
Originally posted by: cdamus.ca.ibm.com
Hi, Varun,
Are your two editors using different editing domains? If so, then they
really should not be sharing objects in this way, because your editing
operations would have to open simultaneous transactions on both editing
domains, and that is not viable in practice. Editing domains are intended
to be closed universes.
Try sharing the same editing domain between these editors; I think this can
be customized in the initialization of the editor class that is generated
for you. The GMF experts can provide details.
Cheers,
Christian
varun bhatia wrote:
> hiiii
>
> i have created a drop down in my properties view in which i am adding the
> diagramelemnts of another editor.
>
> now i select a diagram element from drop down for a node & save it , it
> gets saved.
> after saving when i again click on the node for which i have set the
> diagram element from drop down earlier i get :
>
> java.lang.IllegalStateException: Cannot modify resource set without a
> write transaction
>
> THIS IS HAPPEHINH WHEN I TRY TO RETRIVE THE SAVE CONTENT FROM MY MODEL.
>
> THANKS
> Varun Bhatia
|
|
|
Powered by
FUDForum. Page generated in 0.31993 seconds