|Add item into diagram property from plugin (Java) [message #1767026]
||Thu, 29 June 2017 15:33
| Bukharin Ivan
Registered: June 2017
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?!
Up! I really need your help!
(Size: 49.14KB, Downloaded 34 times)
(Size: 11.01KB, Downloaded 36 times)
(Size: 8.05KB, Downloaded 33 times)
[Updated on: Fri, 07 July 2017 08:02]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01701 seconds