Generator of UML Diagrams and Kopenograms

Thesis title: Generátor UML diagramů a kopenogramů
Author: Kománek, Vít
Thesis type: Bakalářská práce
Supervisor: Pecinovský, Rudolf
Opponents: Chadim, Marek
Thesis language: Česky
Abstract:
Bakalářská práce se zabývá návrhem a implementací nového rozšíření pro editor Visual Studio Code, které slouží k automatizovanému generování UML diagramů tříd a kopenogramů ze zdrojového kódu v jazyce Python. Práce reaguje na nedostatky dřívějších řešení vyvíjených na VŠE, která trpěla nestabilitou vývojového prostředí a sémantickými chybami v diagramech. Hlavním cílem je vytvořit plně funkční, stabilní a interaktivní edukační i analytickou pomůcku. První část práce vymezuje teoretický základ UML diagramů a kopenogramů a vysvětluje princip fungování abstraktního syntaktického stromu. Následně analyzuje existující vizualizační nástroje na trhu a kriticky zhodnocuje předchozí akademické práce. Z této analýzy jsou vyvozeny přesné požadavky na novou architekturu, která zjištěné problémy eliminuje. Druhá část je věnována samotnému vývoji pluginu. Popisuje navrženou dvouvrstvou architekturu izolovaných procesů, implementaci analytického backendu v jazyce Python a klientského frontendu v jazyce TypeScript. Pozornost je věnována grafickému vykreslení pomocí technologie Webview, testování řešení a možnostem budoucího rozvoje. Součástí je i podrobná uživatelská příručka. Výsledkem práce je stabilní a otestované rozšíření, které uživatelům poskytuje okamžitou vizuální zpětnou vazbu pomocí funkce živého náhledu a umožňuje snadný export diagramů.
Keywords: Visual Studio Code; rozšíření; Python; vizualizace kódu; UML diagram tříd; kopenogram; abstraktní syntaktický strom; AST; TypeScript
Thesis title: Generator of UML Diagrams and Kopenograms
Author: Kománek, Vít
Thesis type: Bachelor thesis
Supervisor: Pecinovský, Rudolf
Opponents: Chadim, Marek
Thesis language: Česky
Abstract:
This bachelor thesis focuses on the design and implementation of a new extension for the Visual Studio Code editor, which serves for the automated generation of UML class diagrams and kopenograms from Python source code. The thesis responds to the shortcomings of previous solutions developed at VŠE, which suffered from IDE instability and semantic errors in the diagrams. The main goal is to create a fully functional, stable, and interactive educational and analytical tool. The first part defines the theoretical basis of UML diagrams and kopenograms and explains the principles of the Abstract Syntax Tree. It then analyzes existing visualization tools on the market and critically evaluates previous academic works. From this analysis, precise requirements for a new architecture that eliminates the identified problems are derived. The second part is dedicated to the actual development of the plugin. It describes the proposed two-tier architecture of isolated processes, the implementation of the analytical backend in Python, and the client frontend in TypeScript. Attention is paid to graphical rendering using Webview technology, testing of the solution, and possibilities for future development. A detailed user manual is also included. The result of the thesis is a stable and tested extension that provides users with immediate visual feedback through a live preview function and allows for easy diagram export.
Keywords: plugin; code visualization; kopenogram; Abstract Syntax Tree; Visual Studio Code; Python; UML class diagram; AST; TypeScript

Information about study

Study programme: Aplikovaná informatika
Type of study programme: Bakalářský studijní program
Assigned degree: Bc.
Institutions assigning academic degree: Vysoká škola ekonomická v Praze
Faculty: Faculty of Informatics and Statistics
Department: Department of Information Technologies

Information on submission and defense

Date of assignment: 2. 12. 2025
Date of submission: 10. 5. 2026
Date of defense: 2026

Files for download

The files will be available after the defense of the thesis.

    Last update: