Changeset 69 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs
- Timestamp:
- 05/26/14 11:48:28 (11 years ago)
- Location:
- v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf/src/de/ugoe/cs/swe/bnftools/generator/EbnfGenerator.xtend
r65 r69 20 20 import de.ugoe.cs.swe.bnftools.ebnf.StringRule 21 21 import java.io.File 22 import org.eclipse.xtext.generator.IFileSystemAccessExtension2 23 import org.eclipse.emf.common.util.URI; 22 24 23 25 /** … … 32 34 if (e.bnfEntry.size!=0) { 33 35 fsa.generateFile(e.name + ".fo", e.compile) 36 37 //generate pdf 38 // var uri = (fsa as IFileSystemAccessExtension2).getURI(e.name+".fo"); 39 // (fsa as IFileSystemAccessExtension2). 40 // 41 // System.out.println(uri.hasAbsolutePath()); 42 // System.out.println(uri.path.substring(0,uri.path.length-3)); 43 // System.out.println(uri.file); 44 // System.out.println(uri.toString()); 45 // var File file = new File(uri.path).absoluteFile; 46 // System.out.println(file.exists); 47 // var String aPath = file.absolutePath; 48 // 49 // foToPdf.createPdfFromFo(file,aPath.substring(0,aPath.length-3)); 34 50 } 35 51 }
Note: See TracChangeset
for help on using the changeset viewer.