Confirmation? Not possible to modify the selection with jArchi

Started by rchevallier, November 17, 2021, 13:06:48 PM

Previous topic - Next topic


Hello all

Idea I have is to have a jArchi script which would select some specific elements based on some properties values  among the one in a current view. 
My understanding this is not possible (ie: change the selection with JArchi)
Or is there a way?


Phil Beauvoir

This is all internal Eclipse stuff. The following is how you'd do it theoretically (assuming that a View was open, otherwise you get a Null Pointer Exception):

The problem is passing an array of objects to the active editor, as it only works with internal Archi model classes. jArchi uses proxy classes that wrap the internal model classes. I think it might be possible to get them via:

through some kind of JS introspection, but I can't remember how to do that. I think Herve did it once. See
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.