Get Pkg by selecting elements
When trying to get the package from selected element by:
IRPApplication app = RhapsodyAppServer.getActiveRhapsodyApplication();
IRPPackage pkg = (IRPPackage) app.getSelectedElement();
I got the error:
class com.telelogic.rhapsody.core.RPClass cannot be cast to class com.telelogic.rhapsody.core.IRPPackage (com.telelogic.rhapsody.core.RPClass and com.telelogic.rhapsody.core.IRPPackage are in unnamed module of loader 'app')
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Oct 31 '23, 12:05 p.m.Please read How should I ask a question in the Forum if I want to receive useful answers? and ask a question. Refine your question.