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
139
Views
0
IPM installs
1
1
Details
Releases (3)
Reviews
Issues
Articles (1)
This app has a demo View
Powerful class diagram view for objectscript

What's new in this version

[1.0.0] - 2025-04-07

Added

  • Support for connecting to InterSystems IRIS instances to generate class diagrams directly from server
  • New command for generating InterSystems class diagrams
  • Integration with IRIS REST API for fetching class information
  • Ability to browse class details in the IRIS Management Portal by clicking on diagram elements
  • Support for navigating to class, method, and property definitions in IRIS Documatic

Changed

  • Improved error handling and feedback for connection issues
  • Enhanced SVG rendering and interaction capabilities
  • Optimized diagram generation process
  • Updated UI for better user experience

Fixed

  • Correct URL format for opening classes in IRIS Documatic
  • Fixed clicking on class elements in SVG diagrams
  • Resolved issues with diagram rendering in different environments

Removed

  • Test IRIS connection command and related functionality

InterSystems ObjectScript Class Diagram View

English | 中文 | Deutsch

A Visual Studio Code extension for generating UML class diagrams for InterSystems ObjectScript classes. This extension not only generates class diagrams but also provides interactive display and navigation features.

Features

  • Generation of UML class diagrams from .cls files
  • Support for class and folder-level diagram generation
  • Context menu integration in both editor and explorer
  • Visualization of class relationships, properties, and methods
  • Based on PlantUML for reliable diagram representation
  • Generate diagrams with PlantUML Web Server (no Java installation required)
  • NEW: Direct integration with InterSystems IRIS for server-side class information
  • NEW: Browse classes directly in IRIS Documatic from the diagram
  • Interactive class diagram navigation
    • Click on class names, properties, or methods to quickly jump to corresponding code
    • SVG diagrams embedded in HTML for smooth interaction
    • Visual navigation of class relationships

Requirements

Operating System 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

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

Installation

  1. Install the extension from VS Code
    Install Plugin
  2. Ensure Java Runtime Environment (JRE) is installed on your system (optional when 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 on the file and select “Generate Class Diagram”
      Right Click File
    • Right-click on a folder containing .cls files and select “Generate Class Diagram”
      Right Click Folder
  3. When prompted, select 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 installation required)

Using PlantUML Web Server

When selecting the “PlantUML Web Server” option:

Remote PlantUML Web Server

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

Generate Class Diagram with IRIS Integration

This feature is dependent on Intersystem plugins and it will generate all the class properties, parameters and methods from the chosen class.
It is important to note that the feature generates the entire inheritance hierarchy, even for classes that are not present in the local project.

  1. Configure your IRIS connection in VS Code settings:
    • Go to Settings > Extensions > InterSystems ObjectScript Class Diagram
    • Enter your IRIS server host, port, namespace, username, and password
      Configure IRIS Settings
  2. Open a .cls file in the editor
  3. Right-click and select “Generate InterSystems Class Diagram”
  4. The extension will connect to your IRIS server and generate a diagram using class information from the server
  5. Click on class names, properties, or methods in the diagram to:
    • Open the class in IRIS Documatic
    • View property definitions in IRIS
    • Navigate to method implementations in IRIS
      Generate InterSystems ObjectScript Class 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: Generates a class diagram for the currently open .cls file

Extension Settings

This extension contributes the following commands:

  • intersystems-objectscript-class-diagram-view.generateClassDiagram: Generates a class diagram for the selected file or folder
  • intersystems-objectscript-class-diagram-view.generateIntersystemsClassDiagram: Generates a class diagram using IRIS server information

This extension contributes the following settings:

  • intersystems-objectscript-class-diagram-view.server.host: IRIS server host
  • intersystems-objectscript-class-diagram-view.server.port: IRIS server port
  • intersystems-objectscript-class-diagram-view.server.namespace: IRIS namespace
  • intersystems-objectscript-class-diagram-view.server.username: IRIS server username
  • intersystems-objectscript-class-diagram-view.server.password: IRIS server password

Known Issues

  • Subclass generation: Missing functionality to generate subclass diagrams for the current class
  • Performance for large projects:
    • Generating diagrams for large folders using right-click can have significant delays
    • Generated webview/SVG for large projects lacks smooth zooming functionality and proper scaling

Please report any issues in the GitHub repository.

Contributing

Contributions are welcome! Feel free to submit a pull request.

License

This extension is licensed under the MIT License.

Version
1.0.007 Apr, 2025
Category
Solutions
Works with
InterSystems IRISCaché
First published
21 Feb, 2025
Last edited
08 Apr, 2025