Commit Graph

667 Commits

Author SHA1 Message Date
Andrea Aime b467af9238 Source classes for umldoc tests 2006-06-04 13:55:15 +00:00
Andrea Aime d827bdf1f5 Added testing for umldoc, and moved shared methods with the umlgraph tests in an utility class 2006-06-04 13:55:00 +00:00
Andrea Aime 6bbf7d2f71 Don't infer dependencies from fields if we already inferred relationships (basically to avoid having dependencies on the collection containers that were not included in the relationships) 2006-06-04 13:54:27 +00:00
Andrea Aime 561b50c0f2 Inflict UmlDoc on itself: UmlGraph javadoc generation now uses UmlDoc to generate nice "fur ball class diagrams" as someone calls them. Heh, the package diagram and the ClassGraph diagrams do look like fur balls indeed, speaking to us and asking for mercy (aka, splitting the package into subpackages and splitting ClassGraph into smaller and better defined units).
All in all, having fur balls generation is not that bad, in a sense it makes people see what classes/package are brittle and which are on the contrary crisp, better defined...
2006-06-04 09:22:03 +00:00
Andrea Aime f971bded86 Renamed WrappedRootDoc due to a typo, removed package.html and fixed a few umlgraph tags on the classes for better output generation 2006-06-04 09:19:21 +00:00
Andrea Aime 9bac4fb51a Modified reference files to cope with the latest changes. Current output properly adds url references for external class references, whilst the previous version did not 2006-06-04 08:31:20 +00:00
Andrea Aime 0c41210872 Consistently use pw instead of System.out in every point of the file, better error reporting for file with difference, ensure to flush the printwriter before exiting 2006-06-04 08:29:29 +00:00
Andrea Aime 51a19f4be1 Use Version of printouts 2006-06-04 08:28:12 +00:00
Andrea Aime 20070fafaf Moved handling of api doc map to Options, and made options react to -link parameters the same way as the standard doclet does: by downloading and parsing the package-list file to populate the api doc map. 2006-06-04 08:27:03 +00:00
Andrea Aime 54796efd41 Moved api map to options, removed all dependencies to specified packages since we cannot assume the "user" will specify -subpackages on the command line 2006-06-04 08:24:47 +00:00
Andrea Aime 14932ba5b2 Lots of changes:
* output using the RootDoc.notice/warning methods instead of system.out (standard way, and allows the output to be seen from maven2 javadoc plugins as well)
* works also if the subpackages parameter is not specified on the command line
* added javadoc comments
* other smallish fixes
2006-06-02 09:36:19 +00:00
Andrea Aime 19989b3736 String formatting fix, and don't show package names in the package class diagram (waste of space, all classes do come from the same package anyway) 2006-06-02 09:19:00 +00:00
Andrea Aime 73c2338bce Avoid re-computing the set of returned options, which is really just composed of a handful of possibilities, optimize a little, and fixed a few bugs 2006-06-02 09:17:55 +00:00
Andrea Aime 78bea1ee77 Allow the reuse of the context matcher computed relations for various context center classes in order to speed up UMLDoc, which uses this one heavily.
Also, add an option to avoid overriding class hiding specified in the parent option provider, since the hides specifed for the doclet should not be modified in a context class diagram
2006-06-02 09:16:32 +00:00
Andrea Aime 8ad82c975c Update according to changes in ContextMatcher 2006-06-02 09:10:31 +00:00
Andrea Aime 74a9c16003 Various changes, hard to account for all of them. Yet, basically:
* ability to compute relative links for UmlDoc diagrams (client side image maps)
* better handling of sources with annotations and generics usage
* avoid relying on specifiedpacakges to check if classes are included in the parsed source, maven 2 does not provide javadoc with them, but with a plain list of classes
2006-06-02 09:09:00 +00:00
Andrea Aime a1f3f6ab6c A few changes related to the needs of UMLDoc to generate relative links between diagrams in javadoc files, and a few that are needed for a separate project I'm working on: an "interactive" version of UMLGraph that allows the parsing of source files just once, and re-parses just the views when the user asks for, so that it's way faster to build the views by iterative changes on a big source code base (that code is in such a bad shape now that I don't feel like commiting it now) 2006-06-02 09:03:32 +00:00
Andrea Aime 6e7f99ef8c Small performance improvements, new options for UMLDoc, in particular the ability to enable strict hide pattern matching (m.matches()) instead of lax matching (m.find()). We should think if having strict matching by default would be better (in my opinion it is, but that's just my opinion)...
Also added a reflective toString() that I've used for debugging settings during UmlDoc developtment (the code comes more or less from the first pages of Code Quality, the open source perspective :-) )
2006-06-02 08:56:15 +00:00
Andrea Aime 17779ac68b Classdoc and rootdoc wrappers used to improve the performance of UMLDoc 2006-06-02 08:47:47 +00:00
Diomidis Spinellis bdfc02ae06 Add an entry for the UML with dot site. 2006-05-23 06:30:38 +00:00
Andrea Aime 72f918b68c First stab at UmlDoc implementation. It's an "improved" javadoc that outputs docs along with class diagrams.
Diomidis, can you have a look at the output (UmlGraph javadoc are built with UmlDoc now) and review the code?
I know I still have to write the docs, and I will have to try out UmlDoc on something other than UmlGraph itself (was thinking of the java sources themselves, or Hibernate, Spring, ... whatever is big enough).
2006-05-01 19:38:12 +00:00
Diomidis Spinellis 23fbf7ff19 Fix XML validity errors. 2006-03-05 20:06:14 +00:00
Diomidis Spinellis bdc1e297ae Fix missing <notes> to have the file follow the XML schema. 2006-03-05 19:52:27 +00:00
Diomidis Spinellis b7a7c2335e We don;t need to go over Ghsotscript any more for creating .gif files,
because dot now offers anti-aliased drawing.
2006-03-05 19:45:44 +00:00
Diomidis Spinellis 6f36d06dc8 Update release date for 4.3 2006-03-05 19:45:05 +00:00
Andrea Aime 8e35628205 Stronger checks for view folders existence and accessibility. Let's see if you get a better error message. 2006-03-05 08:50:17 +00:00
Andrea Aime 44d645541a Unfortunately, some commits ago I added a bug in testing code that went
un-noticed since I never wiped out the testdata-out folder contents. Anyway,
 I've fixed the bug and made sure all .dot and .png files are removed from the
folder as the test starts, so that a similar problem won't stay hidden in future.

Anyway, the error you sent me seem to be something different (possibly HTML
code generation, dot is very picky about what HTML it can parse).
Can you try again with this patch and let me know? If you see again that error,
can you send me a few of those failing dot files?

Moreover, what dot version do you have? I have version 2.6 (Sun Aug 28
13:14:52 UTC 2005).

About my aliceposta mail address, I don't know, I'm receiving mail so it cannot
be fully broken, but yes, it's not the first message I don't receive this week.
The mail you sent me thru istlab.dmst.aueb.gr arrived fine (but it's just a
redirector, isn't it?).

Wow... pretty long for a commit message :-)
I'll be online again in the late afternoon. See you.
Andrea
2006-03-04 12:45:13 +00:00
Diomidis Spinellis 96163568f4 Update version number. 2006-03-02 22:26:10 +00:00
Diomidis Spinellis f6e22bc3d5 Fix wording. 2006-03-02 22:22:21 +00:00
Diomidis Spinellis f2e38d03e5 Add CQ blurb. 2006-03-02 22:22:12 +00:00
Diomidis Spinellis 9d6602d0f5 Add Mac OS X explanation. 2006-03-02 15:13:14 +00:00
Andrea Aime 3dc36ec498 Fixed a problematic situation. When all the operations of a class were hidden the generated html wasn't valid (see the test case, a class with a single hidden operation). Plus, when checking for hidden elements for elements other than a class, get the options against the containing class (the views are all based on class at the moment, we don't have views for methods or constructors) 2006-02-23 19:49:27 +00:00
Andrea Aime f7f0725667 New regression test to make sure the fixed bug doesn't get back 2006-02-23 19:46:45 +00:00
Andrea Aime fd167e489e A couple of tests added 2006-02-18 11:09:26 +00:00
Andrea Aime 287c34e3d7 More font options, as well as the ability to postfix the package declaration in class nodes.
Using enums in ClassGraph.
2006-02-18 11:08:58 +00:00
Andrea Aime bca022de5b New options documentation, a sample on font usage, updated release notes. 2006-02-18 11:07:33 +00:00
Andrea Aime 14c71ffd5a A few thing have been done. Removed them from the todo list. 2006-02-12 09:43:03 +00:00
Andrea Aime 6fc777d81f Added a couple of methods, a concrete and an abstract one, in the same class 2006-02-12 09:40:46 +00:00
Andrea Aime ea955c8b37 New set of reference files 2006-02-12 09:40:13 +00:00
Andrea Aime 2a7a49f4db Comment fix 2006-02-12 09:38:15 +00:00
Andrea Aime 2053cb50eb Changes for testable output (platform independent, compact) 2006-02-12 09:38:07 +00:00
Andrea Aime 11575dfd31 New HTML ouput format 2006-02-12 09:37:34 +00:00
Andrea Aime 6a16efccf3 Fixes for dot's font platform dependence, so that we can get italic fonts on windows too. Added a flag to generated "compact", that is, all HTML on one line, output, to ease testing, leaving the more human readable HTML multiline output as default 2006-02-12 09:37:21 +00:00
Diomidis Spinellis fa56977424 Keep echo off.
(Note, previous commit provided a way to specify umlgraph options.)
2006-02-04 23:05:37 +00:00
Diomidis Spinellis 18604f7165 Verbose output is enabled using the -verbose2 flag. 2006-02-04 23:03:31 +00:00
Diomidis Spinellis d04ac049c7 Remove trailing spaces, add file comment, and CVS Id. 2006-02-04 22:44:58 +00:00
Andrea Aime eacd052ed8 Added some feedback on the standard output, so that the user knows what's going on (on big code bases the use of context matches may require quite a bit of time, plus when the diagrams are too big dot just eats 100% CPU for a long time and has to be killed, at least we can show that UMLGraph has finished its part of the work).
The output looks like:

 [java] UMLGraph doclet started
     [java] Building view ViewProduct
     [java] Building view ViewColors
     [java] Building view ViewChildOverride
     [java] Building view ViewChildEmpty
     [java] Building view ViewAtt
     [java] Building view ViewAllDetailed
     [java] Building view ViewAll
     [java] Building view ViewContext
     [java] Building view ViewInterfaces
     [java] Building view ViewSubclasses
     [java] Class diagram generation complete
2006-02-04 09:24:43 +00:00
Andrea Aime 3339c047f2 Build UMLGraph with debug informations. This will improve eventual bug reports we get from users (previously stack trace did not include line numbers) 2006-01-28 10:17:21 +00:00
Andrea Aime bc42b5df48 Refactored test data, now we have one package for each match type 2006-01-28 10:16:18 +00:00
Andrea Aime 26a8c04d31 Reference diagrams for new match types 2006-01-28 10:15:21 +00:00