}
return null;
}
public String getDescription(File f) {
Script s = load(f);
if(s == null)
return super.getDescription(f);
return s.getName() + "\n" + s.getDescription();
}
public String getTypeDescription(File f) {
Script s = load(f);
if(s == null)
return super.getTypeDescription(f);
return Main.APP_NAME + " " + s.language.name + " script";
}
public Icon getIcon(File f) {
Script s = load(f);
if(s == null)
return super.getIcon(f);
return icon;
}
});