Changeset 1195


Ignore:
Timestamp:
Jul 10, 2011, 2:36:54 PM (6 years ago)
Author:
stefan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/PackagesExtractor.java

    r1187 r1195  
    7878      } else
    7979      if (localName.equals("package")) {
    80         pack = new Package(attrList.getValue("name"), attrList.getValue("title"), attrList.getValue("description"), attrList.getValue("debPackage"));
     80        pack = new Package(attrList.getValue("name"), attrList.getValue("options"), attrList.getValue("requiresPackages"), attrList.getValue("title"), attrList.getValue("description"), attrList.getValue("debPackage"));
    8181        packages.add(pack.name, pack);
    8282      }
     
    106106  public static class Package implements Comparable<Package> {
    107107    private String name;
     108    private String[] options = new String[0];
     109    private String[] requiresPackages = new String[0];
    108110    private String title;
    109111    private String description;
    110112    private String debPackage;
    111113
    112     public Package(String name, String title, String description, String debPackage) {
     114    public Package(String name, String optionsList, String requiresPackagesList, String title, String description, String debPackage) {
    113115      this.name = name;
     116      if (optionsList != null) {
     117        options = optionsList.split(",");
     118      }
     119      if (requiresPackagesList != null) {
     120        requiresPackages = requiresPackagesList.split(",");
     121      }
    114122      this.title = title;
    115123      this.description = description;
     
    133141    public String getName() {
    134142      return name;
     143    }
     144
     145    public String[] getOptions() {
     146      return options;
     147    }
     148
     149    public String[] getRequiresPackages() {
     150      return requiresPackages;
    135151    }
    136152
Note: See TracChangeset for help on using the changeset viewer.