Home Applications intersystems-objectscript-class-diagram-view

intersystems-objectscript-class-diagram-view

InterSystems does not provide technical support for this project. Please contact its developer for the technical assistance.
0
0 reviews
0
Awards
93
Views
0
IPM installs
1
1
Details
Releases (2)
Reviews
Issues
Pull requests (1)
Articles (1)
This app has a demo View
Powerful class diagram view for objectscript

What's new in this version

🚀 New Features
Added support for generating class diagrams using PlantUML Web Server (no Java required)
Implemented user choice between local Java and PlantUML Web Server for diagram generation
Added ability to copy PlantUML URL to clipboard or open directly in browser
📝 Documentation
Updated README files (English, Chinese, German) with new PlantUML Web Server functionality
Added detailed instructions for using the PlantUML Web Server option
Improved requirements section with a clear table format for better readability
Enhanced documentation with clearer distinction between required and optional dependencies
🔧 Maintenance
Optimized command structure by consolidating diagram generation commands
Removed redundant code for handling separate web server command
Simplified user interface by providing generation method choice in a single command
⚡️ Performance Improvements
Streamlined diagram generation process for PlantUML Web Server option
Reduced code complexity by removing unnecessary WebView creation for web server URLs

InterSystems ObjectScript Class Diagram View

English | 中文 | Deutsch

A Visual Studio Code extension that generates UML class diagrams for InterSystems ObjectScript classes. This extension not only generates class diagrams but also provides interactive viewing and navigation capabilities.

Features

  • Generate UML class diagrams from .cls files
  • Support for both single class and folder-level diagram generation
  • Right-click context menu integration in both editor and explorer
  • Visualize class relationships, properties, and methods
  • Built on PlantUML for reliable diagram rendering
  • Generate diagrams using PlantUML Web Server (no Java required)
  • Interactive Class Diagram Browsing
    • Click on class names, properties, or methods to quickly jump to the corresponding code
    • SVG diagrams embedded in HTML for smooth interaction
    • Visual navigation of class relationships

Requirements

OS Required Optional (for local PlantUML generation)
Windows - VSCode 1.96.0+
- ObjectScript Class Files(.cls)
- Java 8+
Linux - VSCode 1.96.0+
- ObjectScript Class Files(.cls)
- Java 8+
- Graphviz

💡 If using the PlantUML Web Server, Java and Graphviz are not required.

Installation

  1. Install the extension through VS Code
    install plugin
  2. Ensure you have Java Runtime Environment (JRE) installed on your system (optional if using PlantUML Web Server)
  3. Restart VS Code after installation

Usage

Generating Class Diagrams

  1. Open a .cls file in the editor
  2. Generate a class diagram using one of these methods:
    • Press Ctrl+Alt+U
      press shortcut
    • Right-click the file and select “Generate Class Diagram”
      right click file
    • Right-click a folder containing .cls files and select “Generate Class Diagram”
      right click folder
  3. When prompted, choose your preferred generation method:
    • Local Java: Generates the diagram using local Java installation and displays it in VS Code
    • PlantUML Web Server: Generates a URL that can be opened in any browser (no Java required)

Using PlantUML Web Server

When choosing the “PlantUML Web Server” option:

Remote PlantUML Web Server

  • No local Java installation is required
  • The diagram is generated on the PlantUML Web Server
  • You can copy the URL to clipboard or open it directly in your browser
  • The URL can be shared with others to view the diagram

Interactive Features

  • Click on diagram elements to:
    • Jump to class definitions
    • View property definitions
    • Navigate to method implementations
  • Support for diagram zooming and panning
  • Clear visualization of class relationships

Keyboard Shortcuts

  • Ctrl+Alt+U: Generate class diagram for the currently open .cls file

Extension Settings

This extension contributes the following commands:

  • intersystems-objectscript-class-diagram-view.generateClassDiagram: Generate a class diagram for the selected file or folder

Known Issues

  • External Library Navigation: Unable to navigate to intersystem objectscript library definitions through click interactions
  • Subclass Generation: Missing functionality to generate subclass diagrams for the current class
  • Large Project Performance:
    • Generating diagrams for large folders via right-click may experience significant delays
    • Generated webview/SVG for large projects lacks smooth zoom functionality and proper scaling

Please report any issues on the GitHub repository.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This extension is licensed under the MIT License.

Version
0.1.028 Feb, 2025
Category
Solutions
Works with
InterSystems IRISCaché
First published
21 Feb, 2025
Last edited
02 Mar, 2025