get parent frame

Oxygen general issues.
guna@ebscohost.com
Posts: 27
Joined: Tue Nov 17, 2009 10:16 pm

get parent frame

Post 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
Radu
Posts: 9049
Joined: Fri Jul 09, 2004 5:18 pm

Re: get parent frame

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply