Renamed WrappedRootDoc due to a typo, removed package.html and fixed a few umlgraph tags on the classes for better output generation

This commit is contained in:
Andrea Aime 2006-06-04 09:19:21 +00:00
parent 9bac4fb51a
commit f971bded86
10 changed files with 22 additions and 26 deletions

View File

@ -40,6 +40,8 @@ import com.sun.javadoc.RootDoc;
* the network of class releationships, so you are allowed to reuse it should * the network of class releationships, so you are allowed to reuse it should
* you * you
* @author wolf * @author wolf
*
* @depend - - - DevNullWriter
*/ */
public class ContextMatcher implements ClassMatcher { public class ContextMatcher implements ClassMatcher {
ClassGraphHack cg; ClassGraphHack cg;

View File

@ -22,6 +22,8 @@ import com.sun.tools.doclets.standard.Standard;
* runs the generation of dot files by UMLGraph * runs the generation of dot files by UMLGraph
* @author wolf * @author wolf
* *
* @depend - - - WrappedClassDoc
* @depend - - - WrappedRootDoc
*/ */
public class UmlDoc { public class UmlDoc {
/** /**
@ -57,7 +59,7 @@ public class UmlDoc {
opt.strictMatching = true; opt.strictMatching = true;
// root.printNotice(opt.toString()); // root.printNotice(opt.toString());
root = new WrappedRootDot(root); root = new WrappedRootDoc(root);
generatePackageDiagrams(root, opt, outputFolder); generatePackageDiagrams(root, opt, outputFolder);
generateContextDiagrams(root, opt, outputFolder); generateContextDiagrams(root, opt, outputFolder);
} catch(Throwable t) { } catch(Throwable t) {

View File

@ -31,9 +31,9 @@ import com.sun.javadoc.RootDoc;
/** /**
* Doclet API implementation * Doclet API implementation
* @depend - - * OptionProvider * @depend - - - OptionProvider
* @depend - - * Options * @depend - - - Options
* @depend - - * View * @depend - - - View
* @depend - - - ClassGraph * @depend - - - ClassGraph
* @depend - - - Version * @depend - - - Version
* *

View File

@ -31,13 +31,12 @@ import com.sun.javadoc.Tag;
* RootDoc wrapper that provides WrappedClassDoc instances instead of plain ClassDoc in order * RootDoc wrapper that provides WrappedClassDoc instances instead of plain ClassDoc in order
* to optimize the overall performance of UMLDoc. * to optimize the overall performance of UMLDoc.
* @author wolf * @author wolf
*
*/ */
public class WrappedRootDot implements RootDoc { public class WrappedRootDoc implements RootDoc {
RootDoc wrapped; RootDoc wrapped;
ClassDoc[] wrappedClassDocs; WrappedClassDoc[] wrappedClassDocs;
public WrappedRootDot(RootDoc wrapped) { public WrappedRootDoc(RootDoc wrapped) {
this.wrapped = wrapped; this.wrapped = wrapped;
ClassDoc[] classes = wrapped.classes(); ClassDoc[] classes = wrapped.classes();
wrappedClassDocs = new WrappedClassDoc[classes.length]; wrappedClassDocs = new WrappedClassDoc[classes.length];

View File

@ -1,5 +0,0 @@
<html>
<body>
<img src="./umlgraph.gif" />
</body>
</html>

View File

@ -40,6 +40,8 @@ import com.sun.javadoc.RootDoc;
* the network of class releationships, so you are allowed to reuse it should * the network of class releationships, so you are allowed to reuse it should
* you * you
* @author wolf * @author wolf
*
* @depend - - - DevNullWriter
*/ */
public class ContextMatcher implements ClassMatcher { public class ContextMatcher implements ClassMatcher {
ClassGraphHack cg; ClassGraphHack cg;

View File

@ -22,6 +22,8 @@ import com.sun.tools.doclets.standard.Standard;
* runs the generation of dot files by UMLGraph * runs the generation of dot files by UMLGraph
* @author wolf * @author wolf
* *
* @depend - - - WrappedClassDoc
* @depend - - - WrappedRootDoc
*/ */
public class UmlDoc { public class UmlDoc {
/** /**
@ -57,7 +59,7 @@ public class UmlDoc {
opt.strictMatching = true; opt.strictMatching = true;
// root.printNotice(opt.toString()); // root.printNotice(opt.toString());
root = new WrappedRootDot(root); root = new WrappedRootDoc(root);
generatePackageDiagrams(root, opt, outputFolder); generatePackageDiagrams(root, opt, outputFolder);
generateContextDiagrams(root, opt, outputFolder); generateContextDiagrams(root, opt, outputFolder);
} catch(Throwable t) { } catch(Throwable t) {

View File

@ -31,9 +31,9 @@ import com.sun.javadoc.RootDoc;
/** /**
* Doclet API implementation * Doclet API implementation
* @depend - - * OptionProvider * @depend - - - OptionProvider
* @depend - - * Options * @depend - - - Options
* @depend - - * View * @depend - - - View
* @depend - - - ClassGraph * @depend - - - ClassGraph
* @depend - - - Version * @depend - - - Version
* *

View File

@ -31,13 +31,12 @@ import com.sun.javadoc.Tag;
* RootDoc wrapper that provides WrappedClassDoc instances instead of plain ClassDoc in order * RootDoc wrapper that provides WrappedClassDoc instances instead of plain ClassDoc in order
* to optimize the overall performance of UMLDoc. * to optimize the overall performance of UMLDoc.
* @author wolf * @author wolf
*
*/ */
public class WrappedRootDot implements RootDoc { public class WrappedRootDoc implements RootDoc {
RootDoc wrapped; RootDoc wrapped;
ClassDoc[] wrappedClassDocs; WrappedClassDoc[] wrappedClassDocs;
public WrappedRootDot(RootDoc wrapped) { public WrappedRootDoc(RootDoc wrapped) {
this.wrapped = wrapped; this.wrapped = wrapped;
ClassDoc[] classes = wrapped.classes(); ClassDoc[] classes = wrapped.classes();
wrappedClassDocs = new WrappedClassDoc[classes.length]; wrappedClassDocs = new WrappedClassDoc[classes.length];

View File

@ -1,5 +0,0 @@
<html>
<body>
<img src="./umlgraph.gif" />
</body>
</html>