Getting a SWT Image from the model.createImage(filePath) return value

Started by fanievh, June 24, 2024, 14:35:57 PM

Previous topic - Next topic



What's the easiest way to get an instance of from the return value of the jArchi model.createImage(filePath) method? Want to use it to provide values (images) for org.eclipse.jface.viewers.ColumnLabelProvider getImage method.

Would I have to jump through some hoops and load and use com.archimatetool.editor.model.impl.ArchiveManager from within the jArchi scripting environment - hope not :)

Thanks for any pointers,

Phil Beauvoir

Hi, the Image created by this jArchi method is internal and not exposed to jArchi as the class is not meant to be accessed (we avoid exposing the internal Eclipse classes if possible). As you say, you'd need to access the internal IArchimateModel class and its IArchiveManager with the caveat that this is unsupported.
If you value and use Archi, please consider making a donation!
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.


Thank you Phil, as I suspected.  I'll try a different approach where I don't need to get the images from the model. Maybe at some future point of jArchi development, it could be useful to get access to get and set the byte[] data of images in the model. But I'm sure there's a long list of jArchi features on the roadmap to be developed first  :)