file Get operations from libraries (ramc)

8 months 3 days 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

Please Log in or Create an account to join the conversation.

7 months 2 weeks 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
$YourModule.getModuleContext().getModelingSession().getModel().getLibraryRoots();
session.getModel().getLibraryRoots()

Hoping it helps,
EBR
Attachments:

Please Log in or Create an account to join the conversation.

7 months 2 weeks 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

Please Log in or Create an account to join the conversation.

Moderators: chmcma
Time to create page: 0.138 seconds
^ Back to Top