Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Add item into diagram property from plugin (Java)
Add item into diagram property from plugin (Java) [message #1767026] Thu, 29 June 2017 15:33
Bukharin Ivan is currently offline Bukharin IvanFriend
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!

[Updated on: Fri, 07 July 2017 08:02]

Report message to a moderator

Previous Topic:Usability: Location of Team Provider menu for submodules
Next Topic:Papyrus default colors
Goto Forum:
  


Current Time: Mon Oct 22 15:22:29 GMT 2018

Powered by FUDForum. Page generated in 0.01420 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top