public TextEdit format(int kind, String source, int offset, int length,
int indentationLevel, String lineSeparator) {
try {
// AstyleLog.logInfo(source);
// kind,offset,length,indentationLevel,lineSeparator);
ASFormatter formatter = new ASFormatter();
// TODO : check suffix to set C or Java Style
// filename = getSourcefileName();
// if (filename.endsWith(".java")) {
// formatter.setCStyle(false);