Changeset 68 in default
- Timestamp:
- 05/21/14 10:20:09 (10 years ago)
- Files:
-
- 13 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/de.ugoe.cs.swe.bnftools.xtools/META-INF/MANIFEST.MF
r58 r68 12 12 Bundle-RequiredExecutionEnvironment: JavaSE-1.7 13 13 Bundle-ActivationPolicy: lazy 14 Import-Package: org.apache.commons.io;version="2.0.1"15 14 Export-Package: app, 16 15 resource.tools.xtools -
trunk/de.ugoe.cs.swe.bnftools.xtools/src/app/Translator.java
r58 r68 16 16 if (args.length != 1) { 17 17 System.out.println("Usage: Translator <FILE>"); 18 return;18 // return; 19 19 } 20 20 21 Translator app = new Translator(); 21 app.process(args[0],"bnf"); 22 System.out.println(args[0]); 23 String path = "C:\\Users\\hauke\\test.bnf"; 24 app.process(path,"bnf"); 22 25 } 23 26 -
trunk/de.ugoe.cs.swe.bnftools.xtools/src/resource/tools/xtools/ResourceTool.java
r58 r68 7 7 import java.util.Properties; 8 8 9 import org.apache.commons.io.FileUtils;10 9 import org.eclipse.emf.common.util.BasicDiagnostic; 11 10 import org.eclipse.emf.common.util.Diagnostic; … … 99 98 System.out.println(s); 100 99 101 try {102 FileUtils.writeStringToFile(new File(pathName), s);103 } catch (IOException e) {104 // TODO Auto-generated catch block105 e.printStackTrace();106 }100 // try { 101 //// FileUtils.writeStringToFile(new File(pathName), s); 102 // } catch (IOException e) { 103 // // TODO Auto-generated catch block 104 // e.printStackTrace(); 105 // } 107 106 Resource resource = null; 108 107 //Resource resource = loadResourceFromXtext(workspace, pathName, true); -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/plugin.xml
r67 r68 248 248 </extension> 249 249 250 <!-- -->250 <!-- 251 251 <extension 252 252 point="org.eclipse.xtext.builder.participant"> … … 255 255 </participant> 256 256 </extension> 257 --> 257 258 258 259 <!--this is for using a button for generation 259 <!--this is for using a button for generation--> 260 260 <extension 261 261 point="org.eclipse.ui.handlers"> … … 291 291 </menuContribution> 292 292 </extension> 293 -->293 <!----> 294 294 295 295 -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/labeling/EbnfLabelProvider.xtend
r67 r68 8 8 import de.ugoe.cs.swe.bnftools.ebnf.Rule 9 9 import de.ugoe.cs.swe.bnftools.ebnf.BnfEntry 10 import de.ugoe.cs.swe.bnftools.ebnf.DefinitionList 11 import de.ugoe.cs.swe.bnftools.ebnf.SingleDefinition 12 import de.ugoe.cs.swe.bnftools.ebnf.Term 13 import de.ugoe.cs.swe.bnftools.ebnf.Atom 14 import de.ugoe.cs.swe.bnftools.ebnf.StringRule 10 15 11 16 /** … … 26 31 27 32 def text(BnfEntry entry){ 28 ' Rule'33 'BnfEntry' 29 34 } 35 36 def text(Rule rule){ 37 'Rule: '+rule.name 38 } 39 40 def text(DefinitionList dlist){ 41 'Definition List' 42 } 43 44 def text(SingleDefinition sdef){ 45 'Single Definition' 46 } 47 48 def text(Term term){ 49 'Term' 50 } 51 52 def text(Atom atom){ 53 'Atom' 54 } 55 30 56 } -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/outline/EbnfOutlineTreeProvider.xtend
r67 r68 23 23 } 24 24 25 def boolean _isLeaf(Rule rule) { 26 return true; 27 } 25 28 26 29 27 }
Note: See TracChangeset
for help on using the changeset viewer.