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;