(String[] args)
| 66 | public class TreeView { |
| 67 | |
| 68 | static public void main(String[] args) { |
| 69 | if (args.length == 0) { |
| 70 | usage(); |
| 71 | return; |
| 72 | } |
| 73 | String filename = args[0]; |
| 74 | Template t = null; |
| 75 | try { |
| 76 | t = new Template(filename, new FileReader(filename)); |
| 77 | } catch (Exception e) { |
| 78 | e.printStackTrace(); |
| 79 | return; |
| 80 | } |
| 81 | showTree(t); |
| 82 | } |
| 83 | |
| 84 | static void showTree(Template t) { |
| 85 | JTree tree = new FreeMarkerTree(t); |
nothing calls this directly
no test coverage detected