Package org.eclipse.help.internal.toc

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


  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

TOP

Related Classes of org.eclipse.help.internal.toc.Toc

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.