How to replace the current diagram or diagram content at runtime [message #729950] |
Tue, 27 September 2011 10:55 |
|
Hi,
I have a rather complex model and want to show only parts of that model inside the diagram editor.
Currently I am able to show a specific part of the model but I'd like to know what I
have to do if I want to change the displayed model part at runtime?
I tried to recreate the diagram and editing domain and set this as input and it displays the figures correctly but I am not able to interact with the diagram (move etc) any longer afterwards as it spits always
!MESSAGE GFCommandStack.execute(Command) java.lang.IllegalStateException: Cannot modify resource set without a write transaction
Does anybody know how to get around this problem?
Many thanks in advance,
Lars
|
|
|
|
Re: How to replace the current diagram or diagram content at runtime [message #729978 is a reply to message #729970] |
Tue, 27 September 2011 12:01 |
|
I always only show parts of the model. With the initial loaded diagram all works fine but when I switch to another part of the model it causes that issue.
What you say about the transactions sounds interesting. What I was really wondering about is that after "recreating" the diagram the move / layout features for example do not work any longer and spit that transaction error. I guess I have done something wrong when switching the diagram.
|
|
|
Powered by
FUDForum. Page generated in 0.04070 seconds