working on autosave

This commit is contained in:
Manindra Moharana
2014-03-02 20:40:42 +05:30
parent 1377f759b3
commit f159f80986
4 changed files with 81 additions and 20 deletions

View File

@@ -238,7 +238,7 @@ public class ASTGenerator {
/**
* Toggle AST View window
*/
public static final boolean SHOWAST = true;
public static final boolean SHOWAST = !true;
protected DefaultMutableTreeNode buildAST(String source, CompilationUnit cu) {
if (cu == null) {
@@ -254,14 +254,14 @@ public class ASTGenerator {
compilationUnit = (CompilationUnit) parser.createAST(null);
} else {
compilationUnit = cu;
log("Other cu");
//log("Other cu");
}
// OutlineVisitor visitor = new OutlineVisitor();
// compilationUnit.accept(visitor);
getCodeComments();
codeTree = new DefaultMutableTreeNode(new ASTNodeWrapper((ASTNode) compilationUnit
.types().get(0)));
log("Total CU " + compilationUnit.types().size());
//log("Total CU " + compilationUnit.types().size());
if(compilationUnit.types() == null || compilationUnit.types().isEmpty()){
logE("No CU found!");
}