Add item into diagram property from plugin (Java) [message #1767026] |
Thu, 29 June 2017 15:33 |
Bukharin Ivan Messages: 1 Registered: June 2017 |
Junior Member |
|
|
Hi all
I need add something item into diagram properties, concrete it's "Owned parameter" field, it's must be just string.
I need to do this from the plugin. Changes should be displayed in UI.
I check two way:
1) By load resources from files
- load resources from three file: .di, .uml, .notation
- get ModelSet
- add parameter: activity.createOwnedParameterSet("123");
- try to save resources:
resourceSet.save(new NullProgressMonitor()); AND resourceSet.save(null);
but catch exception: nullpointerexception
2) By searching diagrams in IWorkspace workspace = ResourcesPlugin.getWorkspace();
but last that i see it is implementation of IFile: .settings, .di, ...
How I can setup new item into property "Owned parameter" in diagram in loaded project?!
Edit
Up! I really need your help!
-
Attachment: Снимок.JPG
(Size: 49.14KB, Downloaded 82 times) -
Attachment: papyrus1.txt
(Size: 11.01KB, Downloaded 108 times) -
Attachment: papyrus2.txt
(Size: 8.05KB, Downloaded 108 times)
[Updated on: Fri, 07 July 2017 08:02] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03575 seconds