Added GroovyRenameAction and ProcessRenameAction

This commit is contained in:
Reinhard Pointner 2017-04-05 17:05:20 +08:00
parent 38e57db3ef
commit 42fa6bf0df
1 changed files with 4 additions and 0 deletions

View File

@ -513,6 +513,10 @@ public abstract class ScriptShellBaseClass extends Script {
return StandardRenameAction.forName(obj.toString());
}
if (obj instanceof File) {
return new ProcessRenameAction(obj.toString());
}
if (obj instanceof Closure) {
return new GroovyRenameAction((Closure) obj);
}