InputDialog d = new InputDialog(parent.getShell(),
"Rename Script File",
"Choose the new name of the script file.",
"modified_script_name.js",
new ValidFileName());
if(d.open() == Window.OK){
for(TreeItem t : tree.getSelection()){
for(Script s : ScriptManager.scripts){
Script fScript = (Script)t.getData();
if(s.getReference().equals(fScript.getReference())){
fScript.getReference().renameTo(new File("./scripts/"+d.getValue()));