rhapsody

rhapsody API: how to get mutliple selected elements


Ho can I get multiple selected elements with the Java-API?

The Application-Interface (RPIApplication) seems to have only a getSelectedElement() method. Is there a way to get multiple items?

I saw the get getSelectedGraphElements() method, but it seems that this one only gives diagram elements.

But I want Model-Elements and also the possibility to get selected items from the tree view.


Solution

  • From memory, I think there is a method called getListOfSelectedElements(), which returns an IRPCollection.

    Regards, Simon