Changeset 89 in default
- Timestamp:
- 11/05/14 16:02:34 (10 years ago)
- Location:
- v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/handler
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/handler/BT_GenerationHandlerPDF.java
r84 r89 71 71 72 72 public Object execute(ExecutionEvent event) throws ExecutionException { 73 MessageDialog.openInformation(HandlerUtil.getActiveShell(event),74 "Hello", "Generating PDF");73 // MessageDialog.openInformation(HandlerUtil.getActiveShell(event), 74 // "Hello", "Generating PDF"); 75 75 76 76 … … 136 136 ResourceSet rs = resourceSetProvider.get(project); 137 137 Resource r = rs.getResource(uri, true); 138 139 // to pass a String inside a resource i have to wrap it in a EOBject 140 SimpleAnyType wrapper = XMLTypeFactory.eINSTANCE.createSimpleAnyType(); 141 wrapper.setInstanceType(EcorePackage.eINSTANCE.getEString()); 142 wrapper.setValue(mode); 143 // 138 // // to pass a String inside a resource i have to wrap it in a EOBject 139 // SimpleAnyType wrapper = XMLTypeFactory.eINSTANCE.createSimpleAnyType(); 140 // wrapper.setInstanceType(EcorePackage.eINSTANCE.getEString()); 141 // wrapper.setValue(mode); 142 // // 144 143 EbnfGenerator gen = (EbnfGenerator)generator; 145 // add string to resource146 r.getContents().add(wrapper);144 // // add string to resource 145 // r.getContents().add(wrapper); 147 146 gen.doGenerate(r, fsa,false); 148 147 //generator.doGenerate(r, fsa); -
v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui/src/de/ugoe/cs/swe/bnftools/ui/handler/BT_GenerationHandlerRTF.java
r84 r89 71 71 72 72 public Object execute(ExecutionEvent event) throws ExecutionException { 73 MessageDialog.openInformation(HandlerUtil.getActiveShell(event),74 "Hello", "Generating RTF");73 // MessageDialog.openInformation(HandlerUtil.getActiveShell(event), 74 // "Hello", "Generating RTF"); 75 75 //used to save the command name (defined in extensions) 76 76 String mode = ""; … … 136 136 Resource r = rs.getResource(uri, true); 137 137 138 // to pass a String inside a resource i have to wrap it in a EOBject139 SimpleAnyType wrapper = XMLTypeFactory.eINSTANCE.createSimpleAnyType();140 wrapper.setInstanceType(EcorePackage.eINSTANCE.getEString());141 wrapper.setValue(mode);142 //138 // // to pass a String inside a resource i have to wrap it in a EOBject 139 // SimpleAnyType wrapper = XMLTypeFactory.eINSTANCE.createSimpleAnyType(); 140 // wrapper.setInstanceType(EcorePackage.eINSTANCE.getEString()); 141 // wrapper.setValue(mode); 142 // // 143 143 EbnfGenerator gen = (EbnfGenerator)generator; 144 144 // add string to resource 145 r.getContents().add(wrapper);145 // r.getContents().add(wrapper); 146 146 gen.doGenerate(r, fsa,true); 147 147 //generator.doGenerate(r, fsa);
Note: See TracChangeset
for help on using the changeset viewer.