astframefactory.java

来自「plugin for eclipse」· Java 代码 · 共 34 行

JAVA
34
字号
/*
 * Created on May 18, 2005
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package isis.anp.test;

import antlr.ASTFactory;
import antlr.CommonAST;
import antlr.collections.AST;
import antlr.debug.misc.ASTFrame;

/**
 * @author sallai
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class ASTFrameFactory {
	public static ASTFrame create(AST root) {
		return create(root,"AST");
	}
	
	public static ASTFrame create(AST root, String title) {

		CommonAST newroot = (CommonAST) (new ASTFactory().create());
		newroot.setFirstChild(root);
		ASTFrame frame = new ASTFrame(title, newroot);
		frame.setVisible(true);
		return frame;
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?