Reference to IDEAs swing frame

Hi,

is there a legal way to get a reference to the IDEA-Swing-Frame associated to a given Project?

Background:

I want to add Drop-Functionality and got it working with the first frame/project openend by using JOptionPane.getRootFrame, which is dirty and doesn't work for subsequent frames.

If there's no legal way I would try to follow DialogWrapper(Project project,...) and see what's done there.

Thanks.

0
3 comments

Perhaps
WindowManager.getInstance().suggestParentWindow(project)
is useful. It has some javadoc.

0

Thank you!

Seems to work pretty well. :)

0

Works for me too. Thanks a lot.

0

Please sign in to leave a comment.