Custom URL Chooser Issue
Posted: Wed Dec 17, 2014 11:29 pm
Can someone help me troubleshoot my issue with a Custom URL chooser? I have created a custom URL chooser and it works for the most part when using the open URL or insert functions. If however I call the URL choosers from a properties editor (the thing that pops up when you click on an opening tag) it doesn’t quite work.
I have a custom modal JDialog that I create and then show. My code always blocks until I have selected a path in my dialog as it should. When calling the URL choosers from a properties editor, as soon as I set my custom JDialog to visible, the properties editor and brow dialog disappear and will never get the URL chosen.
The action code essentially looks like this:
I have a custom modal JDialog that I create and then show. My code always blocks until I have selected a path in my dialog as it should. When calling the URL choosers from a properties editor, as soon as I set my custom JDialog to visible, the properties editor and brow dialog disappear and will never get the URL chosen.
The action code essentially looks like this:
Code: Select all
Action TFS_browse_Action = new AbstractAction("CMS") {
URL url;
@Override
public void actionPerformed(ActionEvent arg0) {
Frame frame = (Frame) pluginWorkspaceAccess.getParentFrame();
final JDialog temp = new JDialog(frame, "CMS File Chooser", true);
temp.setVisible(true);
if(url != null)
fileChooser.urlChosen(url);
}
};