pier 2002/06/03 14:23:02 Modified: webapp/support template.pl Log: Output class documentation only if classes are present in the analyzed source (class == structure). Revision Changes Path 1.6 +69 -45 jakarta-tomcat-connectors/webapp/support/template.pl Index: template.pl =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/webapp/support/template.pl,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- template.pl 4 Jul 2001 16:45:13 -0000 1.5 +++ template.pl 3 Jun 2002 21:23:02 -0000 1.6 @@ -121,6 +121,11 @@ <td width="10"> </td> <td> </td> </tr> + << + + # Generate a list of classes included in this package + if ($p->classes()) { + >> <tr> <td colspan="2"> <font face="arial,helvetica,sans serif"> @@ -128,19 +133,28 @@ </font> </td> </tr> - << - - # Generate a list of classes included in this package - foreach $e ($p->classes()) { - $_ = $e->url; - s/\s/_/g; - y/[A-Z]/[a-z]/; + << + foreach $e ($p->classes()) { + $_ = $e->url; + s/\s/_/g; + y/[A-Z]/[a-z]/; + >> + <tr> + <td width="10"> </td> + <td> + <font face="arial,helvetica,sans serif"> + <nobr><a href="doc.$_" target="doc">$(e.fullname)</a></nobr> + </font> + </td> + </tr> + << + } + } else { >> <tr> - <td width="10"> </td> - <td> + <td colspan="2"> <font face="arial,helvetica,sans serif"> - <nobr><a href="doc.$_" target="doc">$(e.fullname)</a></nobr> + <nobr><i>No Classes defined.</i></nobr> </font> </td> </tr> @@ -148,6 +162,9 @@ } # Generate a list of all global functions included in this package + >> + <tr><td colspan="2"> </td></tr> + << if ($p->globalfuncs()) { >> <tr> @@ -186,6 +203,9 @@ } # Generate a list of all global variables included in this package + >> + <tr><td colspan="2"> </td></tr> + << if ($p->globalvars()) { >> <tr> @@ -276,49 +296,53 @@ </table> <br> <table width="100%" cellspacing="0" cellpadding="2" border="1"> - <tr> - <td bgcolor="eeeeff" align="left"> - <font face="arial,helvetica,sans serif"> - <b>Classes</b> - </font> - </td> - </tr> << # Generate a TOC of all classes at the top of the page - foreach $e ($p->classes()) { - $_ = $e->url; - s/\s/_/g; - y/[A-Z]/[a-z]/; + if ($p-> classes()) { >> <tr> - <td> - <dl> - <dt> - <font face="arial,helvetica,sans serif"> - <nobr><a href="doc.$_">$(e.fullname)</a></nobr> - </font> - </dt> - << - if ($e->members()) { - foreach $m ($e->members()) { - $_ = $m->url; - s/\s/_/g; - y/[A-Z]/[a-z]/; - >> - <dd> - <font size="-1" face="arial,helvetica,sans serif"> - <nobr><a href="doc.$_">$(m.fullname)</a></nobr> - </font> - </dd> - << - } - } - >> - </dl> + <td bgcolor="eeeeff" align="left"> + <font face="arial,helvetica,sans serif"> + <b>Classes</b> + </font> </td> </tr> << + foreach $e ($p->classes()) { + $_ = $e->url; + s/\s/_/g; + y/[A-Z]/[a-z]/; + >> + <tr> + <td> + <dl> + <dt> + <font face="arial,helvetica,sans serif"> + <nobr><a href="doc.$_">$(e.fullname)</a></nobr> + </font> + </dt> + << + if ($e->members()) { + foreach $m ($e->members()) { + $_ = $m->url; + s/\s/_/g; + y/[A-Z]/[a-z]/; + >> + <dd> + <font size="-1" face="arial,helvetica,sans serif"> + <nobr><a href="doc.$_">$(m.fullname)</a></nobr> + </font> + </dd> + << + } + } + >> + </dl> + </td> + </tr> + << + } } # Continue with the global functions TOC
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>