[Dev] [Developer-studio] IllegalStateException when updating GMF resource set in run-time

2014-04-16 Thread Gayan Yalpathwala
Hi, I am trying to dynamically update one of the datamapper GMF editparts using the following [1] code snippet. This throws an IllegalStateException [2]. Any idea on how I can update the resource set in run-time? [1] TreeNode graphicalTreeModel = rootDiagram.getInput().getTreeNode().get(0);

Re: [Dev] [Developer-studio] IllegalStateException when updating GMF resource set in run-time

2014-04-16 Thread Lali Devamanthri
Hi Gayank, You are trying to change the EMF model in runtime. In this kind of change cannot execute without using transaction API[1] (All changes made to the model should be done using commands). You can find the same kind of issues in here[2][3]. [1]