Package org.eclipse.help

Examples of org.eclipse.help.IToc


    if (topicHref != null && topicHref.length() > 0)
      return UrlUtil.getHelpURL(topicHref);
    else
    if (selectedToc == -1)
      return null;
    IToc toc = tocs[selectedToc];
    ITopic tocDescription = toc.getTopic(null);
    if (tocDescription != null)
      return UrlUtil.getHelpURL(tocDescription.getHref());
    return UrlUtil.getHelpURL(null);
  }
View Full Code Here


    if (topic == null || topic.equals("")) //$NON-NLS-1$
      return null;

    if (getSelectedToc() < 0)
      return null;
    IToc selectedToc = getTocs()[getSelectedToc()];
    if (selectedToc == null)
      return null;
    return selectedToc.getTopic(topic);
  }
View Full Code Here

        }
    }

    public void generateLinks(Writer out) {
        for (int i = 0; i < tocs.length; i++) {
            IToc toc = tocs[i];
            ITopic tocTopic = toc.getTopic(null);
            generateTopicLinks(tocTopic, out, 0);
            ITopic[] topics = toc.getTopics();
            for (int t = 0; t < topics.length; t++) {
                generateTopicLinks(topics[t], out, 1);
            }
        }
View Full Code Here

    // create sub toc's topic.
    for (Iterator<ITocContribution> it = docBundleContributes.iterator(); it
        .hasNext();) {
      ITocContribution con = it.next();
      IToc toc = con.getToc();
      if (toc instanceof Toc) {
        TocWrapperTopic topic = new TocWrapperTopic((Toc) toc);
        tocTopics.add(topic);
      }
View Full Code Here

    StringBuilder newJavaFileBuilder = new StringBuilder();
    loadJavaTemplate(newJavaFileBuilder, javaTemplateFile);

    // Generate the code
    for (ITocContribution tocContribution : phpTocs) {
      IToc toc = tocContribution.getToc();
      IUAElement[] children = toc.getChildren();
      writeElements(children, helpContextBuilder, newJavaFileBuilder, 1);
    }

    newJavaFileBuilder.append('}');
    helpContextBuilder.append("</contexts>"); //$NON-NLS-1$
View Full Code Here

          contribution.setContributorId(contrib[j].getContributorId());
          contribution.setExtraDocuments(contrib[j].getExtraDocuments());
          contribution.setId(contrib[j].getId());
          contribution.setLocale(contrib[j].getLocale());
          contribution.setPrimary(contrib[j].isPrimary());
          IToc toc = contrib[j].getToc();
          contribution.setToc(toc instanceof Toc ? (Toc)toc : (Toc)UAElementFactory.newElement(toc));
          contributions.add(contribution);
        }
      }
      cached = (TocContribution[])contributions.toArray(new TocContribution[contributions.size()]);
View Full Code Here

TOP

Related Classes of org.eclipse.help.IToc

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.