Skip to Content
ProjectsJava EditorOverview

Mendix Java Editor

A lightweight Java editor for Studio Pro that lets you view and make quick edits to Java Action source files without leaving the IDE.

TL;DR: Right-click any Java Action in App Explorer, select “Open in Java Editor”, and view or edit the source code directly in Studio Pro. Ideal for quick inspections and small edits. Download it here to get started.


The Problem

Editing Java Actions in Mendix means switching to an external IDE:

  1. Open Studio Pro
  2. Find your Java Action
  3. Switch to VS Code or IntelliJ
  4. Navigate to the correct .java file
  5. Make your changes
  6. Switch back to Studio Pro
  7. Hope everything compiles

That’s a lot of context switching just to check a parameter mapping or fix a one-liner.


The Solution: Java Editor

A Monaco-powered Java editor that lives inside Studio Pro:

No IDE switching. No file hunting. Just right-click → view → edit → save.

Good to know: The editor does not include a Java Language Server (LSP), so you won’t get compile errors, type checking, or import resolution. Think of it as a convenient viewer with editing capabilities - perfect for inspecting code, tweaking parameters, or making small fixes. For heavy refactoring, you’ll still want a full IDE like IntelliJ or VS Code.


Demo


Download

Requirements:

  • Mendix Studio Pro 11.6 or higher
  • Extensibility setting must be enabled (see instructions below)

Download the extension

Studio Pro VersionDownload
11.6+mendix-java.zip

Extract to your project

Extract the zip file to your Mendix project’s extensions folder:

<YourMendixProject>/ └── extensions/ └── mendix-java/ ├── main.js ├── editor.js ├── mendix-java.css └── manifest.json

Example path: C:\Users\YourName\Mendix\MyProject-main\extensions\mendix-java\

Enable extensibility (if not already enabled)

  1. In Studio Pro, click EditPreferences
  2. Go to the Advanced tab
  3. Under “Extension Development”, check “Start Studio Pro in Extension Development Mode. Requires restart of Studio Pro.”
  4. Click OK
  5. Restart Studio Pro

Load the extension

Option 1: Restart Studio Pro

  1. Close Studio Pro completely
  2. Reopen your project

Option 2: Synchronize App Directory (faster!)

  1. In Studio Pro, go to AppSynchronize App Directory
  2. Wait for synchronization to complete

Start using it

  1. Right-click any Java Action in App Explorer
  2. Select Open in Java Editor
  3. Edit your code and click the Save button to save

What It Does

FeatureDescription
Context Menu IntegrationRight-click any Java Action to open it in the editor
Monaco EditorProfessional code editing with Java syntax highlighting (VS Code’s engine)
Basic AutocompleteWord-based suggestions (no LSP/type-aware IntelliSense)
Save ControlsExplicit save via the Save button
Status BarShows file path and save status at a glance
Dark ThemeMatches Studio Pro’s look and feel
MinimapQuick navigation through larger files
Bracket MatchingBracket pair colorization for easier reading

How It Works

Architecture

┌─────────────────────────────────────────────────────────────┐ │ MENDIX STUDIO PRO │ ├─────────────────────────────────────────────────────────────┤ │ ┌─────────────────┐ ┌─────────────────────────────────┐ │ │ │ App Explorer │ │ Java Editor Tab │ │ │ │ │ │ ┌───────────────────────────┐ │ │ │ │ Modules │ │ │ Status Bar │ │ │ │ │ ├─ Java │ │ │ filepath [Save] saved │ │ │ │ │ │ Actions ◄─┼────┼──┤───────────────────────────│ │ │ │ │ │ │ │ │ │ │ │ │ │ └─ ... │ │ │ Monaco Editor (Java) │ │ │ │ │ │ │ │ │ │ │ │ └─────────────────┘ │ └───────────────────────────┘ │ │ │ └─────────────────────────────────┘ │ └─────────────────────────────────────────────────────────────┘

When you right-click a Java Action and select “Open in Java Editor”:

  1. The extension resolves the Java Action’s source file path using the loadUnits() API
  2. A new editor tab opens with the action’s name as the tab title
  3. The file content is loaded via Mendix’s file API
  4. Monaco renders the Java source with full syntax highlighting
  5. Changes are saved back to the project when you click Save

Technology Stack

PackagePurpose
@mendix/extensions-apiStudio Pro integration
@monaco-editor/reactVS Code’s editor engine
react + tailwindcssUI framework and styling

Built with Vite and TypeScript for fast, type-safe development.


Resources


Questions or feedback? Find me on LinkedIn  or email me at b.thomsin@gmail.com.