Package com.redcareditor.plist

Examples of com.redcareditor.plist.Dict.containsElement()


  private void loadSettings(Dict dict) {
    List<PlistNode<?>> dictSettings = dict.getArray("settings");
    for (PlistNode<?> node : dictSettings) {
      Dict nodeDict = (Dict) node;
      if (!nodeDict.containsElement("scope")) {
        loadGlobalSetting(nodeDict);
      } else {
        settings.add(new ThemeSetting(nodeDict));
      }
    }
View Full Code Here


    Dict plistRepoEntry;
    for (String key : plistRepo.keys()) {
//      System.out.printf("loading repository entry: %s\n", key);
      List<Pattern> repoArray = new ArrayList<Pattern>();
      plistRepoEntry = plistRepo.getDictionary(key);
      if (plistRepoEntry.containsElement("begin") || plistRepoEntry.containsElement("match")) {
//        System.out.printf("    contains begin or match\n");
        Pattern pattern = Pattern.createPattern(this.allPatterns, plistRepoEntry);
        if (pattern != null) {
          pattern.grammar = this;
          repoArray.add(pattern);
View Full Code Here

    Dict plistRepoEntry;
    for (String key : plistRepo.keys()) {
//      System.out.printf("loading repository entry: %s\n", key);
      List<Pattern> repoArray = new ArrayList<Pattern>();
      plistRepoEntry = plistRepo.getDictionary(key);
      if (plistRepoEntry.containsElement("begin") || plistRepoEntry.containsElement("match")) {
//        System.out.printf("    contains begin or match\n");
        Pattern pattern = Pattern.createPattern(this.allPatterns, plistRepoEntry);
        if (pattern != null) {
          pattern.grammar = this;
          repoArray.add(pattern);
View Full Code Here

        if (pattern != null) {
          pattern.grammar = this;
          repoArray.add(pattern);
        }
      }
      else if (plistRepoEntry.containsElement("patterns")) {
//        System.out.printf("    contains patterns\n");
        for (PlistNode<?> plistPattern : plistRepoEntry.getArray("patterns")) {
          Pattern pattern = Pattern.createPattern(this.allPatterns, (Dict) plistPattern);
          if (pattern != null) {
            pattern.grammar = this;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.