コード例 #1
0
 public static List<String> virtual_getAllMacroNames_1234975567387(
     SNode thisNode, boolean addBasedir) {
   List<String> names =
       ListSequence.fromListAndArray(
           new ArrayList<String>(), Layout_Behavior.getMPSHomeName_1226508944077());
   if (addBasedir) {
     ListSequence.fromList(names).addElement(Layout_Behavior.getBasedirName_1226509010730());
   }
   ListSequence.fromList(names)
       .addSequence(SetSequence.fromSet(PathMacros.getInstance().getUserNames()));
   return names;
 }
コード例 #2
0
 public static String virtual_evaluateMacro_1234975967990(SNode thisNode, String macroName) {
   if (macroName == null) {
     return "";
   }
   if (macroName.equals(Layout_Behavior.getBasedirName_1226509010730())) {
     return IMacroHolder_Behavior.call_getPath_1234976932856(thisNode);
   }
   if (macroName.equals(Layout_Behavior.getMPSHomeName_1226508944077())) {
     return PathManager.getHomePath();
   }
   if (macroName.equals(Layout_Behavior.getScriptsDirName_462257719548547202())) {
     return "";
   }
   return PathMacros.getInstance().getValue(macroName);
 }