Oxygen is given focus (brought to the front of my open windows in my OS).

Are you missing a feature? Request its implementation here.
amitkumarpandit245
Posts: 2
Joined: Wed Jun 14, 2023 1:50 pm

Oxygen is given focus (brought to the front of my open windows in my OS).

Post by amitkumarpandit245 »

Hi Team,
Do we have a method in oxygen which will bring my oxygen editor in front of all the opened windows on my OS? .
boolean open(java.net.URL url) -- This method does not seem to bring my editor in the front when I open any file in oxygen.
Thanks & Regards
Amit Kumar
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen is given focus (brought to the front of my open windows in my OS).

Post by Radu »

Hi Amit,

Maybe you can try something like this to bring the Oxygen frame to front:

Code: Select all

((java.awt.Frame)ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getParentFrame()).toFront();
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
amitkumarpandit245
Posts: 2
Joined: Wed Jun 14, 2023 1:50 pm

Re: Oxygen is given focus (brought to the front of my open windows in my OS).

Post by amitkumarpandit245 »

Hi Radu,
I did tried this option. It does not seem to work.
((java.awt.Frame)ro.sync.exml.workspace.api.PluginWorkspaceProvider.getPluginWorkspace().getParentFrame()).toFront();
Thanks & Regards
Amit Kumar
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

Re: Oxygen is given focus (brought to the front of my open windows in my OS).

Post by Radu »

Hi Amit,

Maybe you can give me a general idea where in your code you used the "Frame.toFront()" idea I gave you.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply