Changeset 89 in default for v2/trunk/de.ugoe.cs.swe.bnftools.ebnf.ui


Ignore:
Timestamp:
11/05/14 16:02:34 (10 years ago)
Author:
phdmakk
Message:
  • removed popup dialogs and other unnecessary code
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  
    7171     
    7272    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"); 
    7575         
    7676           
     
    136136          ResourceSet rs = resourceSetProvider.get(project); 
    137137          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//        // 
    144143          EbnfGenerator gen = (EbnfGenerator)generator; 
    145           // add string to resource 
    146           r.getContents().add(wrapper); 
     144//        // add string to resource 
     145//        r.getContents().add(wrapper); 
    147146          gen.doGenerate(r, fsa,false); 
    148147          //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  
    7171     
    7272    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"); 
    7575          //used to save the command name (defined in extensions) 
    7676          String mode = ""; 
     
    136136          Resource r = rs.getResource(uri, true); 
    137137          
    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           // 
     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//        // 
    143143          EbnfGenerator gen = (EbnfGenerator)generator; 
    144144          // add string to resource 
    145           r.getContents().add(wrapper); 
     145//        r.getContents().add(wrapper); 
    146146          gen.doGenerate(r, fsa,true); 
    147147          //generator.doGenerate(r, fsa); 
Note: See TracChangeset for help on using the changeset viewer.