Examples of ITopic


Examples of org.eclipse.help.ITopic

  public Toc(IToc src) {
    super(NAME, src);
    setHref(src.getHref());
    setLabel(src.getLabel());
    ITopic topic = src.getTopic(null);
    if (topic != null) {
      setTopic(topic.getHref());
    }
    appendChildren(src.getChildren());
  }
View Full Code Here

Examples of org.eclipse.help.ITopic

  }
 
  public ITopic getTopic(String href) {
    if (href == null) {
      if (topic == null) {
        topic = new ITopic() {
          public String getHref() {
            return getTopic();
          }
          public String getLabel() {
            return Toc.this.getLabel();
View Full Code Here

Examples of org.eclipse.help.ITopic

     */
    private static String getLabel(UAElement element) {
      if (element instanceof Topic) {
        Topic topic = (Topic)element;
        if (topic.getLabel() == null) {
          ITopic topic2 = HelpPlugin.getTocManager().getTopic(topic.getHref());
          if (topic2 != null) {
            topic.setLabel(topic2.getLabel());
          }
          else {
            String msg = "Unable to look up label for help keyword index topic \"" + topic.getHref() + "\" with missing \"" + Topic.ATTRIBUTE_LABEL + "\" attribute (topic does not exist in table of contents; using href as label)"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
            HelpPlugin.logError(msg);
            topic.setLabel(topic.getHref());
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.