}
JDialog f = new JDialog(null,
"new Script (" + getPluginName() + "-import waiting to resume)",
ModalityType.APPLICATION_MODAL);
ScriptEditorPanel editor = new ImportScriptEditorPanel(maxScriptnum, text,
date, value,
getMyProperties(), this);
f.getContentPane().add(editor);
f.pack();
f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
f.setVisible(true);
// if the script was saved, return it to be run
if (!editor.wasCanceled()
&& getMyProperties().containsKey(
getPluginName() + SETTINGS_PREFIX_IMPORTSCRIPT_REGEXP + maxScriptnum)) {
return maxScriptnum;
}
return null;