示例#1
0
 public void loadValues(Map<String, String> store, IPropertiesPool properties) {
   try {
     {
       ITarget.Name name = new ITarget.Name("jetbrains.mps.lang.core.TextGen.textGen");
       TextGen_Facet.Target_textGen.Parameters props =
           properties.properties(name, TextGen_Facet.Target_textGen.Parameters.class);
       if (MapSequence.fromMap(store)
           .containsKey("jetbrains.mps.lang.core.TextGen.textGen.pathToFile")) {
         props.pathToFile(null);
       }
       if (MapSequence.fromMap(store)
           .containsKey("jetbrains.mps.lang.core.TextGen.textGen.failIfNoTextgen")) {
         props.failIfNoTextgen(
             Boolean.valueOf(
                 MapSequence.fromMap(store)
                     .get("jetbrains.mps.lang.core.TextGen.textGen.failIfNoTextgen")));
       }
       if (MapSequence.fromMap(store)
           .containsKey("jetbrains.mps.lang.core.TextGen.textGen.generateDebugInfo")) {
         props.generateDebugInfo(
             Boolean.valueOf(
                 MapSequence.fromMap(store)
                     .get("jetbrains.mps.lang.core.TextGen.textGen.generateDebugInfo")));
       }
     }
   } catch (RuntimeException re) {
   }
 }
示例#2
0
 public void storeValues(Map<String, String> store, IPropertiesPool properties) {
   {
     ITarget.Name name = new ITarget.Name("jetbrains.mps.lang.core.TextGen.textGen");
     if (properties.hasProperties(name)) {
       TextGen_Facet.Target_textGen.Parameters props =
           properties.properties(name, TextGen_Facet.Target_textGen.Parameters.class);
       MapSequence.fromMap(store)
           .put("jetbrains.mps.lang.core.TextGen.textGen.pathToFile", null);
       MapSequence.fromMap(store)
           .put(
               "jetbrains.mps.lang.core.TextGen.textGen.failIfNoTextgen",
               String.valueOf(props.failIfNoTextgen()));
       MapSequence.fromMap(store)
           .put(
               "jetbrains.mps.lang.core.TextGen.textGen.generateDebugInfo",
               String.valueOf(props.generateDebugInfo()));
     }
   }
 }