1.1 --- a/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java Tue Nov 30 09:38:48 2010 -0800 1.2 +++ b/src/share/classes/com/sun/tools/doclets/internal/toolkit/builders/AbstractBuilder.java Wed Dec 01 11:02:38 2010 -0800 1.3 @@ -95,13 +95,14 @@ 1.4 * Build the documentation, as specified by the given XML element. 1.5 * 1.6 * @param node the XML element that specifies which component to document. 1.7 + * @param contentTree content tree to which the documentation will be added 1.8 */ 1.9 - protected void build(XMLNode node) { 1.10 + protected void build(XMLNode node, Content contentTree) { 1.11 String component = node.name; 1.12 try { 1.13 invokeMethod("build" + component, 1.14 - new Class<?>[] { XMLNode.class }, 1.15 - new Object[] { node }); 1.16 + new Class<?>[]{XMLNode.class, Content.class}, 1.17 + new Object[]{node, contentTree}); 1.18 } catch (NoSuchMethodException e) { 1.19 e.printStackTrace(); 1.20 configuration.root.printError("Unknown element: " + component); 1.21 @@ -111,8 +112,8 @@ 1.22 } catch (Exception e) { 1.23 e.printStackTrace(); 1.24 configuration.root.printError("Exception " + 1.25 - e.getClass().getName() + 1.26 - " thrown while processing element: " + component); 1.27 + e.getClass().getName() + 1.28 + " thrown while processing element: " + component); 1.29 throw new DocletAbortException(); 1.30 } 1.31 } 1.32 @@ -121,10 +122,11 @@ 1.33 * Build the documentation, as specified by the children of the given XML element. 1.34 * 1.35 * @param node the XML element that specifies which components to document. 1.36 + * @param contentTree content tree to which the documentation will be added 1.37 */ 1.38 - protected void buildChildren(XMLNode node) { 1.39 - for (XMLNode child: node.children) 1.40 - build(child); 1.41 + protected void buildChildren(XMLNode node, Content contentTree) { 1.42 + for (XMLNode child : node.children) 1.43 + build(child, contentTree); 1.44 } 1.45 1.46 /** 1.47 @@ -140,8 +142,7 @@ 1.48 Object[] params) 1.49 throws Exception { 1.50 if (DEBUG) { 1.51 - configuration.root.printError("DEBUG: " + this.getClass().getName() 1.52 - + "." + methodName); 1.53 + configuration.root.printError("DEBUG: " + this.getClass().getName() + "." + methodName); 1.54 } 1.55 Method method = this.getClass().getMethod(methodName, paramClasses); 1.56 method.invoke(this, params);