Changeset 35 in default for trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools
- Timestamp:
- 11/03/10 16:08:54 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/formatter/HtmlFormatterHandler.java ¶
r34 r35 35 35 36 36 XtextDocument doc = (XtextDocument) editor.getDocument(); 37 38 37 IContainer parent = editor.getResource().getParent(); 39 38 … … 44 43 EbnfHtmlFormatterVisitor visitor = new EbnfHtmlFormatterVisitor( 45 44 rootNode.getParserNode().getElement(), config); 46 // visitor.accept(rootNode.getElement());47 45 48 46 visitor.accept(); 49 47 50 // System.out.println(visitor.getBuf());51 IWorkspace workspace = ResourcesPlugin.getWorkspace();52 IWorkspaceRoot workspaceRoot = workspace.getRoot();53 IPath location = workspaceRoot.getLocation();54 55 System.out.println(parent.getLocationURI().getPath());56 // File f = new File(".");57 48 writeFile(visitor.getBuf().toString(), parent.getLocationURI().getPath() + "/" + editor.getResource().getName() + ".html"); 58 49 System.out.println(visitor.getBuf()); 50 59 51 return null; 60 52 }
Note: See TracChangeset
for help on using the changeset viewer.