Changeset 1199


Ignore:
Timestamp:
Jul 10, 2011, 9:37:56 PM (6 years ago)
Author:
stefan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/src/jlatexeditor/tools/PackageParser.scala

    r1197 r1199  
    8080      val ctanPackString = pack.ctanPackInfo.map( pack => " title=\"" + escape(pack.title) + "\" description=\"" + escape(pack.desc) + "\"").getOrElse("")
    8181      val debPackageString = pack.debPackage.map( pack => " debPackage=\"" + pack.name + "\"").getOrElse("")
    82       out.println("  <package name=\"" + pack.name + "\"" + optionsPackString + requiresPackagesString + ctanPackString + debPackageString + ">")
     82      val usageCountString = pack.usageCount.map( count => " usageCount=\"" + count + "\"").getOrElse("")
     83      out.println("  <package name=\"" + pack.name + "\"" + optionsPackString + requiresPackagesString + ctanPackString + debPackageString + usageCountString + ">")
    8384      for (command <- pack.commands.values) {
    8485        val optArgString = if (command.optionalArgs.isEmpty) "" else " optionalArg=\"" + escape(command.optionalArgs(0)) + "\""
     
    197198    }
    198199    val ctanPackInfo = ctanPackInfos.get(name.toLowerCase)
     200    val usageCount = PackageUsageCounter.packages2usageCount.get(name)
    199201  }
    200202  class CtanPackInfo(val title: String, val desc: String)
Note: See TracChangeset for help on using the changeset viewer.