|How to get all the elements from a papyrus model [message #1051060]
||Sun, 28 April 2013 06:11
| sabrina ing
Registered: February 2013
I've created a plug-in project which defines an extension point and I have created
another plug-in project used this extension point for modeling a real time operating
systems (RTOS) using Papyrus and using the Profile in Software Resource Modeling (SRM)
of Standard MARTE.
My requirement is how to retrieve all the elements(class, attributes,default values
of attributes,...) from my model using Java code.
I used this code to get my model:
RegisteredRTOSLibrary rtos = RegisteredRTOSLibrary.getRegisteredLibraries();
URI modelUri = rtos.uri;
ResourceSet resourceSet = new ResourceSetImpl();
Resource inResources = resourceSet.getResource( modelUri, true);
But I don't know how to retrieve the elements of my model.
Can you help me please.
Thanks in advance.
[Updated on: Sun, 28 April 2013 07:34]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01647 seconds