Skip to content

Commit 6f28ff9

Browse files
committed
reference generator fix to append js mode descriptions
1 parent 6b5a566 commit 6f28ff9

File tree

11 files changed

+6
-2
lines changed

11 files changed

+6
-2
lines changed
-254 Bytes
Binary file not shown.
-2.4 KB
Binary file not shown.
Binary file not shown.
-995 Bytes
Binary file not shown.
55 Bytes
Binary file not shown.
-892 Bytes
Binary file not shown.
Binary file not shown.

java_generate/ReferenceGenerator/src/ProcessingWeblet.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static boolean start(RootDoc root) {
5656

5757
if (!Shared.i().getIncludeDirectory().equals(""))
5858
{ // need to get something back from
59-
// this to create index
59+
// this to create index
6060
System.out.println("\n===Writing XML-sourced reference.===");
6161
XMLReferenceWriter.write( Shared.i().getIncludeDirectory(), indexWriter);
6262
System.out.println("===Include directory files written.===");

java_generate/ReferenceGenerator/src/writers/BaseWriter.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,8 @@ protected static String getXMLDescription(Document doc) {
376376
try{
377377
XPathExpression expr = xpath.compile(component);
378378
String result = (String) expr.evaluate(doc, XPathConstants.STRING);
379+
if ( !desc.equals("") )
380+
desc += "<br /><br />\n";
379381
desc += result;
380382
} catch ( XPathExpressionException e){
381383
System.out.println("Error getting description from xml with expression: //" + component);

java_generate/ReferenceGenerator/src/writers/Shared.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ public String getCoreClassName()
8888

8989
public void addDescriptionTag(String s) {
9090
System.out.println( "Added description tag: " + s );
91-
descriptionSets.add("//"+s);
91+
descriptionSets.add( "/root/"+s );
92+
descriptionSets.add( "/root/js_mode/"+s );
9293
}
9394

9495
public ArrayList<String> getDescriptionSets() {

0 commit comments

Comments
 (0)