Package org.eclipse.help.internal

Examples of org.eclipse.help.internal.UAElement.insertBefore()


            TocContribution srcContribution = getContribution(HrefUtil.normalizeHref(destContribution.getContributorId(), toc));
            if (srcContribution != null) {
              process(srcContribution);
              IUAElement[] children = srcContribution.getToc().getChildren();
              for (int i=0;i<children.length;++i) {
                parent.insertBefore((UAElement)children[i], link);
              }
              addExtraDocuments(destContribution, srcContribution.getExtraDocuments());
            }
            parent.removeChild(link);
          }
View Full Code Here


              TocContribution[] srcContributions = getAnchorContributions(destContribution.getId() + '#' +  anchorId);
              for (int i=0;i<srcContributions.length;++i) {
                process(srcContributions[i]);
                IUAElement[] children = srcContributions[i].getToc().getChildren();
                for (int j=0;j<children.length;++j) {
                  parent.insertBefore((UAElement)children[j], anchor);
                }
                addExtraDocuments(destContribution, srcContributions[i].getExtraDocuments());
              }
            }
          }
View Full Code Here

        Element domElement = uaElement.element;
        UAElement parent = uaElement.getParentElement();
        for (int i=0;i<nodes.length;++i) {
          if (nodes[i].getNodeType() == Node.ELEMENT_NODE) {
            // ensure elements are typed
            parent.insertBefore(UAElementFactory.newElement((Element)nodes[i]), uaElement);
          }
          else {
            // text nodes are not typed
            Node node = domElement.getOwnerDocument().importNode(nodes[i], true);
            parent.element.insertBefore(node, domElement);
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.