Examples of Toc


Examples of com.cardence.lawshelf.cfr.jaxb.TOC

    for (Object unknown : unknownObjects) {
      if (unknown instanceof HD) {
        candidates.add(((HD) unknown));
      } else if (unknown instanceof TOC) {
        TOC toc = (TOC) unknown;
        candidates.add(toc.getTOCHD().getHD());
      }
    }
    return candidates;
  }
View Full Code Here

Examples of org.eclipse.help.internal.toc.Toc

          "toc_template.xml");
      DocumentReader reader = new DocumentReader();
      try {
        InputStream in = fileUrl.openStream();
        if (in != null) {
          Toc toc = (Toc) reader.read(in);
          toc.setLabel(siteDiplayName);
          SiteToc siteToc = new SiteToc(toc, versionMap);
          TocContribution contribution = new TocContribution();
          contribution.setCategoryId(siteName);
          contribution.setContributorId(Activator.getInstance()
              .getBundleSymbleName());
View Full Code Here

Examples of org.eclipse.help.internal.toc.Toc

  private TocContribution parse(TocFile tocFile) {
    try {
      DocumentReader reader = new DocumentReader();
      InputStream in = tocFile.getInputStream();
      if (in != null) {
        Toc toc = (Toc) reader.read(in);
        in.close();
        TocContribution contribution = new TocContribution();

        // Wrap the parsed toc to modify the href path with some prefix.
        contribution.setToc(new TocWrapper(tocFile.getID(), toc));
View Full Code Here

Examples of org.glassfish.admingui.connector.TOC

  // The parent UIComponent
  UIComponent parent = getParentUIComponent();

  // Get the TOC
        TOC toc = (TOC) desc.getEvaluatedOption(ctx, "toc", parent);

  // The following method should set the "key" to the node containing all
  // the children... the children will also have keys which must be
  // retrievable by the next method (getChildTreeNodeObjects)... these
  // "keys" will be used by the rest of the methods in this file for
View Full Code Here

Examples of org.glassfish.admingui.connector.TOC

     */
    public synchronized TOC getHelpTOC(String locale) {
  if (locale == null) {
      locale = "en"; // Use this as the default...
  }
  TOC mergedTOC = helpSetMap.get(locale);
  if (mergedTOC != null) {
      // Already calculated...
      return mergedTOC;
  }

  // TOC
  Map<String, List<URL>> mapUrls = getResources(locale + "/help/toc.xml");

  // Get our parser...
  ConfigParser parser = new ConfigParser(habitat);

  // Setup a new "merged" TOC...
  mergedTOC = new TOC();
  mergedTOC.setTOCItems(new ArrayList<TOCItem>());
  mergedTOC.setVersion("2.0");

  // Loop through the urls and add them all
  String id = null; // module id
  String prefix = "/" + locale + "/help/"// prefix (minus module id)
  List<URL> urls = null; // URLs to TOC files w/i each plugin module
  for (Map.Entry<String, List<URL>> entry : mapUrls.entrySet()) {
      id = entry.getKey();
      urls = entry.getValue();
      for (URL url : urls) {
    DomDocument doc = parser.parse(url);

    // Merge all the TOC's...
    TOC toc = (TOC) doc.getRoot().get();
    for (TOCItem item : toc.getTOCItems()) {
        insertTOCItem(mergedTOC.getTOCItems(), item, id + prefix);
    }
      }
  }

View Full Code Here

Examples of org.glassfish.admingui.plugin.TOC

  // The parent UIComponent
  UIComponent parent = getParentUIComponent();

  // Get the TOC
        TOC toc = (TOC) desc.getEvaluatedOption(ctx, "toc", parent);

  // The following method should set the "key" to the node containing all
  // the children... the children will also have keys which must be
  // retrievable by the next method (getChildTreeNodeObjects)... these
  // "keys" will be used by the rest of the methods in this file for
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.