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.
Please sign in to leave a comment.
Perhaps
WindowManager.getInstance().suggestParentWindow(project)
is useful. It has some javadoc.
Thank you!
Seems to work pretty well. :)
Works for me too. Thanks a lot.