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
_______________________________________________
oXygen-user mailing list
[email protected]
http://www.oxygenxml.com/mailman/listinfo/oxygen-user

Reply via email to