Page 1 of 1

API to Replace Image Preview in Oxygen XML Editor

Posted: Mon Jul 21, 2025 1:27 pm
by vishwavaranasi
Hello Team ,
We have implemented some custom operations in our Oxygen plugin, where an image file gets replaced during runtime. This file is previously opened in the Oxygen editor and is displayed in the Image Preview area.
My question is:
Is there any API available that allows us to programmatically refresh or replace the content shown in the Image Preview area of the Oxygen XML Editor?

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Wed Jul 23, 2025 12:48 pm
by sorin_carbunaru
Hi,

We do not provide such an API. If this image is already opened in the main editor (which you can refresh if needed), do you also need it in the Image Preview view? If yes, please explain so I can better understand your use-case.

All the best,
Sorin Carbunaru
Oxygen XML Editor

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Thu Jul 24, 2025 2:06 pm
by vishwavaranasi
Yes i wan to refresh Image Preview view like we have
WSDITAMapEditorPage page = (WSDITAMapEditorPage) mainEditor.getCurrentPage();
page.refreshReferences();

Thanks,
vishwa

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Thu Jul 24, 2025 2:36 pm
by sorin_carbunaru
I understand, but my question was why do you need that if you also have the image visible in the editor? I am trying to understand your need.

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Thu Jul 24, 2025 2:53 pm
by vishwavaranasi
here is what am trying , one of my oxygen plugin action replaces the image file in the same path , so i just want to refresh with newly replaced image.

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Thu Jul 24, 2025 3:59 pm
by sorin_carbunaru
I created issue EXM-56021 API to refresh Image Preview if the image changes begind the scenes. We do not have such an API at the moment.

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Thu Jul 24, 2025 7:49 pm
by vishwavaranasi
Thanks sorin,
usually where do we find the newly created issues for oxygen API's

Thanks,
vishwa

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Fri Jul 25, 2025 9:02 am
by sorin_carbunaru
Unfortunately they are not publicly available. They are in our internal JIRA system.

But we will update this thread when such an API will be available.

Re: API to Replace Image Preview in Oxygen XML Editor

Posted: Mon Jul 28, 2025 11:02 am
by Radu
Hi,
Out of curiosity if you use this plugins API "ro.sync.exml.workspace.api.Workspace.open(URL)" to load the image URL, does it work for you? It should load the image in the Preview view.
Regards,
Radu