Custom panel with data calculated based on element's properties

Started by maksim aniskov, August 28, 2024, 11:40:51 AM

Previous topic - Next topic

maksim aniskov

Hi,
On my model, I add references to source code lines on git as property of elements and relations.
I want to extend Archi to make it show the source code content in Archi's UI as I browse the elements.

What would be the easiest implementation for such add-on?

Thank you!

Phil Beauvoir

Hi, I don't think there is an "easy" implementation for this kind of thing. You would need to create a plug-in as described here. The plug-in would need to register as a workbench selection listener and update an Eclipse ViewPart or EditorPart containing a text control with a connection to the source file. Another way to do this would be to create a plug-in that contains an extension to the "org.eclipse.ui.views.properties.tabbed.propertySections" extension point to create a Property Section containing a text control. If you look at the plug-ins at the Archi GitHub code you'll see how this is done.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

maksim aniskov

It does not sound as an easy walk :) Thank you @Phil Beauvoir I'll try to make time for this deep-diving.