Open file at cursor: image in Oxygen Image Preview

Having trouble installing Oxygen? Got a bug to report? Post it all here.
martindholmes
Posts: 178
Joined: Wed Apr 20, 2005 5:43 pm
Location: Victoria, BC, Canada

Open file at cursor: image in Oxygen Image Preview

Post by martindholmes »

Hi there,

When I right-click (in Editor mode) on the path to an image, I have the option to Open File at Cursor, and Open File at Cursor in System Application. In both cases, an image (JPG) is opened in the system application. Is it possible to configure Oxygen so that the first of these would open the file in the Image Preview window inside Oxygen? That doesn't seem to be an option when configuring file types in the Preferences.

All help appreciated,
Martin
Radu
Posts: 9058
Joined: Fri Jul 09, 2004 5:18 pm

Re: Open file at cursor: image in Oxygen Image Preview

Post by Radu »

Hi Martin,

I would agree that "Open File at Cursor" should prefer Oxygen's Image Preview for images, I will add an internal issue for it.
Of course another approach could be to add some framework specific API and when the cursor is moved inside the image element the Image Preview could automatically show the image reference if the view is visible.
Or what a plugin could do, if it adds a cursor move listener to the text editing page's JTextArea:

https://www.oxygenxml.com/InstData/Edit ... omponent--

would be do detect when the cursor is inside the image reference, compute the URL to the target image and use this API:

ro.sync.exml.workspace.api.Workspace.open(URL)

which should open the image in the Preview view.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
sorin_carbunaru
Posts: 402
Joined: Mon May 09, 2016 9:37 am

Re: Open file at cursor: image in Oxygen Image Preview

Post by sorin_carbunaru »

Hello Martin,

Just wanted to let you know that the improvement you asked for on this thread has been implemented in the recently released oXygen 22.

Best wishes,
Sorin Carbunaru
oXygen XML
Post Reply