- Posts: 22
- Thank you received: 0
×
Modelio 4.0.0 released (07 Nov 2019)
Modelio 4.0.0 has been released ( www.modelio.org/forum/4-announcements/45...-4-0-0-released.html )
Get operations from libraries (ramc)
3 years 3 months ago #5613 by rxo39
Hi,
In my project, i use the MVisitor to explore my elements, but i also need to get the class operations provided by the libraries.
I don't know how to get this ? Could you help me, or explain me how to use API services to do this ?
Thanks a lot
In my project, i use the MVisitor to explore my elements, but i also need to get the class operations provided by the libraries.
I don't know how to get this ? Could you help me, or explain me how to use API services to do this ?
Thanks a lot
Please Log in or Create an account to join the conversation.
3 years 2 months ago #5624 by ebr
Dear rxo39,
First of all, I inserted a screenshot of a simple Java project in order to explain myself
So if i well i=understood your issue your are now able to explore the 'modeliosoft' Package and you want to be able to explore the 'Sdp' Class for example, am I right?
if Yes, you need to have access to the libraries deplyed in your project. To do do you can use the following Java or Jython code
Hoping it helps,
EBR
First of all, I inserted a screenshot of a simple Java project in order to explain myself
So if i well i=understood your issue your are now able to explore the 'modeliosoft' Package and you want to be able to explore the 'Sdp' Class for example, am I right?
if Yes, you need to have access to the libraries deplyed in your project. To do do you can use the following Java or Jython code
$YourModule.getModuleContext().getModelingSession().getModel().getLibraryRoots();
session.getModel().getLibraryRoots()
Hoping it helps,
EBR
Please Log in or Create an account to join the conversation.
3 years 2 months ago #5627 by rxo39
Hi Ebr,
Not exactly, in fact i need to get all operations, as well in my project as in all libraries defined in my project.
But it is OK, i found a better way to do the job :
i have inject in my plugin project the IMModelServices and use the findByClass() method
Thanks for the help
Not exactly, in fact i need to get all operations, as well in my project as in all libraries defined in my project.
But it is OK, i found a better way to do the job :
i have inject in my plugin project the IMModelServices and use the findByClass() method

Thanks for the help
Please Log in or Create an account to join the conversation.
Time to create page: 0.164 seconds