Is it possible to generate UML diagrams directly on Omnis studio (tigerlogic) 5 or 8 through some external component maybe ? I was thinking about a class diagram and a sequence diagram...
I've experimented something with the OBrowser and some external JS library, but for now it only has limited support to the class diagram, feel free to look at https://github.com/GiacomoManzoli/OmnisDocUML .
The basic idea is to use the Omnis introspection utilities like $cclass.$methods
, $cclass.$ivarsdef
and $methods.[methodName].$lvarsdef
to define the class field and methods. Then to use the $superclass
and the vars definition to define the relationships with other classes. Once the class is correctly represented in Omnis, you can parse the definition in a graphical language, such has DOT (like i did) or nomnoml .
For the sequence diagram i have not did anything yet, maybe something can be done by accessing the method lines or text and parsing the Do
and Do method
commands.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.