0

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...

1
  • 1
    You can RE code with most of the professional tools to create class diagrams. SDs can only be created from running code (which is also supported by some of the UML tools).
    – qwerty_so
    Aug 23, 2018 at 7:22

1 Answer 1

-1

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.

1
  • Do not post a link to a tool or library as an answer. Demonstrate how it solves the problem in the answer itself. Do edit the answer, and flag for undeletion once you have added the demonstration. Jan 20, 2019 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.