My plugin has two versions. In older version in my ***.genmodel file my
resource type is XML. In my later version in my ***.genmodel file I have
changed resource type is XMI and I have overridden public boolean
useUUIDs() {return true} . So In my later version in my model I am getting
xmi:id.
Now when I am copying my diagram and model file from older version to
newer version in my model file xmi:id is not there in my model file . In
the editor when I do anything and save my diagram file , In my model file
I am getting xmi:id automatically.
Now what I want is without opening the editor and making it dirty and
saving it I want to programatically get these xmi:id's in my model. For
this one option I have is programatically I should make the editor dirty
and save it (I have not checked if this will generate xmi:id or not). If
this is the only way how I can make editor dirty for all the files I have
copied programatically and how to save these file programatically without
opening the editor.