if ((i + 1) < roles.length) rolesBuilder.append(", ");
}
rolesBuilder.append("}");
writer.println("workspace.addTool(\"" + loadTool.group() + "\"," +
" \"" + loadTool.name() + "\", \"" + loadTool.icon() + "\", " + loadTool.multipleAllowed()
+ ", " + loadTool.priority() + ", new " + clazz.getName() + "(), " + rolesBuilder.toString() + ");");
} else {
writer.println("workspace.addTool(\"" + loadTool.group() + "\"," +
" \"" + loadTool.name() + "\", \"" + loadTool.icon() + "\", " + loadTool.multipleAllowed()
+ ", " + loadTool.priority() + ", new " + clazz.getName() + "());");