How to edit .notation file by java [message #1720690] |
Wed, 20 January 2016 05:04 |
Eclipse User |
|
|
|
In statemachine diagram I want to copy a uml element and paste it.
now, I know how to operator the uml file, for excample:
Region r = xxxxx;
State newState = EcoreUtil.copy(selectedState);
r.getSubvertices().add(newState);
selectedModel.eResource.save(null);
then, the selectedState will be copied and pasted to the selectedModel.The uml file will be changed. But, we can't see it in the diagram because the notation file is not modified.
how to add selectedState's copy info into the notation file?
I'm a fresh man.I don't know the papyrus's source
|
|
|
Powered by
FUDForum. Page generated in 0.02777 seconds