Implementing a URI Protocol Handler Plugin

I'm trying to implement a custom URI protocol handler and as part of that I'll be creating my own dialogs for choosing objects from the RSuite repository. My question is: does the URLChooserPluginExtension have access to the parent frame of the Oxygen application? I see that for example selection plugins do but I don't see any indication that URL chooser plugins do, but I think it would be good, for example, to be able to position my dialog relative to the Oxygen window or get minimize events or whatever (which I think getting the frame lets me do--I'm very new to Java GUI programming). Thanks, Eliot -- W. Eliot Kimber Senior Solutions Architect Really Strategies, Inc. "Bringing Strategy, Content, and Technology Together" Main: 610.631.6770 www.reallysi.com www.rsuitecms.com Sent using the Microsoft Entourage 2004 for Mac Test Drive.

Hello, At this time we do not offer the frame as an argument to the URLChooserPluginExtension.chooseURL() method. However, you can find the editor frame by using the following static method: java.awt.Frame.getFrames() You should iterate through the returned array and find the one that is instance of "ro.sync.exml.MainFrame": Frame oxygenFrame = null; Frame[] allFrames = Frame.getFrames(); for (int i = 0; i < allFrames.length; i++) { if(allFrames[i].getClass().getName().equals("ro.sync.exml.MainFrame")) { oxygenFrame = allFrames[i]; break; } } System.out.println("Found the oxygen frame: " + oxygenFrame); I hope this helps, Best regards, Dan Eliot Kimber wrote:
I'm trying to implement a custom URI protocol handler and as part of that I'll be creating my own dialogs for choosing objects from the RSuite repository.
My question is: does the URLChooserPluginExtension have access to the parent frame of the Oxygen application? I see that for example selection plugins do but I don't see any indication that URL chooser plugins do, but I think it would be good, for example, to be able to position my dialog relative to the Oxygen window or get minimize events or whatever (which I think getting the frame lets me do--I'm very new to Java GUI programming).
Thanks,
Eliot
participants (2)
-
Dan Caprioara
-
Eliot Kimber