Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » java.lang.IllegalStateException: Cannot modify resource set without a write tran
java.lang.IllegalStateException: Cannot modify resource set without a write tran [message #126337] Tue, 15 May 2007 02:52 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
Previous Topic:problems with GMF tutorial
Next Topic:How to set the location of figures, programmatically
Goto Forum:
  


Current Time: Tue Jul 08 12:39:19 EDT 2025

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

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

Back to the top