Can Jarchi trigger archi menu actions?

Started by rfamans, October 28, 2018, 22:30:58 PM

Previous topic - Next topic


Is it possible to initiate Archi menu actions (e.g. close the active view) via a Jarchi script? Would be great to know how this could be done.

Phil Beauvoir

Yes, it's possible, but you have to be familiar with the underlying Java code:

var CLOSE = Java.type("org.eclipse.ui.actions.ActionFactory").CLOSE;
var action = CLOSE.create(workbenchwindow);;

Best thing would be to open a feature request so that it is exposed as a jArchi feature.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.


Ok, thanks. I will try to see if I can get my way around with looking into the underlying Java.