Package net.sf.jabref

Examples of net.sf.jabref.SearchRule


    /** Show groups that, if selected, would show at least one
     * of the entries found in the specified search. */
    protected void showOverlappingGroups(List<BibtexEntry> matches) { //DatabaseSearch search) {
      GroupTreeNode node;
      SearchRule rule;
      BibtexEntry entry;
      Vector<GroupTreeNode> vec = new Vector<GroupTreeNode>();
      Map<String, String> dummyMap = new HashMap<String, String>(); // just because I don't want to use null...
      for (Enumeration<GroupTreeNode> e = groupsRoot.depthFirstEnumeration(); e.hasMoreElements(); ) {
          node = e.nextElement();
          rule = node.getSearchRule();
          for (Iterator<BibtexEntry> it = matches.iterator(); it.hasNext(); ) {
              entry = it.next();
              if (rule.applyRule(dummyMap, entry) == 0)
                      continue;
              vec.add(node);
              break;
          }
      }
View Full Code Here

TOP

Related Classes of net.sf.jabref.SearchRule

Copyright © 2018 www.massapicom. 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.