Page 1 of 1

get parent frame

Posted: Tue Mar 02, 2010 7:53 pm
by guna@ebscohost.com
Hi,
We have a plugin that implements URLChooserToolbarExtension and URLChooserPluginExtension.

when using this plugin. we open a Java dialog and the dialog displays in a separated window. but we don't want it this way.

we want parent frame context, like framework. so can you guide us how to implement this.

example, when we create dialog with framework, we have used
(Frame) authorAccess.getWorkspaceAccess().getParentFrame()

i want similar that goes with URL CHooser plugins.

Thanks
Guna

Re: get parent frame

Posted: Wed Mar 03, 2010 11:23 am
by Radu
Hi Guna,

You can use:

Code: Select all

JFrame.getFrames();
to iterate through all created frames and look for the one that

Code: Select all


isShowing();
Regards,
Radu