Visual Paradigm NetBeans Integration: UML Modeling and Java Code Engineering in NetBeans

Visual Paradigm Desktop provides integration with Apache NetBeans, allowing developers to combine UML modeling and Java development within a unified working environment. With Visual Paradigm NetBeans Integration, developers can create UML projects associated with NetBeans Java projects, reverse engineer Java source code into UML class models, generate and update Java source files from UML models, and navigate between corresponding model elements and source code.

This integration connects software design with implementation. Developers can use UML class diagrams to visualize and plan application structures, generate Java code from those designs, and update their UML models as the implementation evolves. Instead of maintaining software diagrams and source code as completely separate artifacts, teams can use Visual Paradigm’s code engineering capabilities to keep both representations aligned.

Visual Paradigm NetBeans Integration is particularly useful for Java developers who want to incorporate visual modeling into their existing development workflow without continually switching between disconnected tools.

What Is Visual Paradigm NetBeans Integration?

Visual Paradigm NetBeans Integration is an IDE integration feature that connects Visual Paradigm Desktop with the NetBeans development environment. It allows developers to access Visual Paradigm modeling capabilities from NetBeans and perform model-to-code and code-to-model operations on associated Java projects.

The integration supports several important development activities:

  • UML project creation: Create a Visual Paradigm UML project associated with an existing NetBeans Java project.
  • UML project opening: Open the associated Visual Paradigm project directly from NetBeans.
  • Reverse engineering: Convert Java source code into UML class models, working at project, package, or class level.
  • Java code generation: Generate or update Java source files from UML class models, working at project, package, or class level.
  • Model navigation: Locate the corresponding UML class or diagram view from a Java source file.
  • Source code navigation: Open the corresponding Java source file from a UML class in Visual Paradigm.

These capabilities establish a connection between the UML model and its associated Java implementation. Developers can use Visual Paradigm for visual design and structural modeling while continuing to use NetBeans for coding and application development.

Why Integrate Visual Paradigm with NetBeans?

Software design and implementation are closely related activities. UML diagrams help developers understand system architecture, class relationships, and application structure, while source code provides the executable implementation. Keeping these two representations aligned can become challenging as software evolves.

Visual Paradigm NetBeans Integration helps address this challenge by connecting visual modeling with Java development.

Connect Software Design with Implementation

Developers can design application structures using UML class diagrams and generate corresponding Java source files. This provides a practical way to translate conceptual designs into implementation structures.

When developers modify existing Java source code, they can also reverse engineer the implementation to update the corresponding UML models. This makes it easier to maintain design documentation throughout the development lifecycle.

Reduce Repetitive Development Work

Creating Java class structures manually from UML designs can introduce repetitive work. Code generation helps automate the creation and updating of source files based on UML models.

Similarly, reverse engineering avoids the need to recreate class structures manually when documenting an existing Java application.

Improve Understanding of Existing Applications

For developers working with established Java projects, source code can contain complex relationships that are difficult to understand by reading individual files. Reverse engineering helps transform these structures into UML class models, making the system easier to visualize and analyze.

Navigate Between Models and Source Code

The integration provides navigation in both directions. Developers can locate a UML class from its associated Java source file or open the corresponding Java source file from a UML class in Visual Paradigm.

This is particularly useful when reviewing a design decision, investigating an implementation detail, or maintaining a large application.

Work Within an Existing Java Development Environment

Developers can initiate Visual Paradigm operations from NetBeans project nodes, package structures, and Java class files. This reduces the need to manage modeling and implementation as entirely separate workflows.

Edition Availability and Requirements

Visual Paradigm provides NetBeans IDE integration across its Desktop editions. However, the availability of the integration mechanism should be distinguished from the availability of the code engineering functionality used to synchronize UML models and Java source code.

Visual Paradigm Edition NetBeans IDE Integration Java Code Engineering
Enterprise Edition Supported Supported
Professional Edition Supported Supported
Standard Edition Supported Supported
Modeler Edition Supported Not included
Community Edition Supported Not included

Important: Although the IDE integration is listed across all editions, Java code engineering capabilities, including Java round-trip engineering, are available in Standard Edition, Professional Edition, and Enterprise Edition. Modeler and Community editions do not include these code engineering features.

Community Edition is intended for non-commercial use. Users working on commercial projects should select an appropriate commercial license.

NetBeans Version Requirement

Visual Paradigm’s published NetBeans integration documentation specifies NetBeans 6.7 or above as the supported baseline. Developers should also check the current product documentation and compatibility information when working with newer NetBeans releases.

Installation Requirements

The integration is installed from Visual Paradigm Desktop into an existing NetBeans installation. The installation process copies integration files into the selected IDE directory, so the user account running Visual Paradigm must have sufficient permission to modify that directory.

On Windows, running Visual Paradigm as an administrator may be necessary when the installation directory requires elevated permissions.

Visual Paradigm NetBeans Integration: Functionality Breakdown

The integration consists of several complementary capabilities. Together, they support the creation, maintenance, synchronization, and navigation of UML models and Java source code.

Creating a UML Project from a NetBeans Java Project

Developers can create a Visual Paradigm UML project directly from an existing Java project in NetBeans. The UML project becomes associated with the selected Java project, providing the foundation for subsequent code engineering operations.

When creating a UML project, developers can choose where to save the Visual Paradigm project file.

  • Create in default path: Saves the UML project under the NetBeans project directory in a folder named vpproject.
  • Create at external location: Allows developers to specify another directory for storing the Visual Paradigm project file.
  • Remember my decision: When using the default location option, developers can select this setting to reuse their location preference for future project creation.

The resulting UML project is stored as a Visual Paradigm project file with the .vpp extension.

There are two important association rules:

  • One NetBeans Java project can be associated with at most one Visual Paradigm UML project.
  • A UML project cannot be created through this integration without associating it with a Java project.

The documented workflow also states that an existing association cannot subsequently be removed or detached through this integration.

Importing an Existing Visual Paradigm Project into NetBeans

Developers are not limited to creating new UML projects. They can also import an existing Visual Paradigm .vpp project into a NetBeans Java project.

This is useful when a UML model has already been created in Visual Paradigm and needs to be connected to a Java project in NetBeans.

During the import process, developers specify:

  • The location of the existing Visual Paradigm .vpp project file.
  • The destination where the imported UML project file should be saved.

As with new UML project creation, developers can use the default vpproject directory under the NetBeans project or specify an external location.

Opening an Associated UML Project

Once a UML project has been associated with a NetBeans Java project, developers can open it directly from NetBeans.

To open the associated UML project, right-click the relevant Java project in NetBeans and select Open Visual Paradigm EE.

This launches the associated Visual Paradigm modeling environment and provides access to the UML project connected to that Java project.

Reverse Engineering Java Source Code into UML Models

Reverse engineering converts existing Java source code into UML class models. It allows developers to visualize an application’s implementation structure using UML diagrams instead of relying exclusively on source code.

Visual Paradigm supports three levels of reverse engineering through NetBeans:

Project-Based Reverse Engineering

Project-based reverse engineering creates or updates UML models from all source files in a selected Java project.

It covers:

  • The selected Java project.
  • Its child packages.
  • The classes contained in those packages.

To reverse engineer an entire project:

  1. Open the relevant Java project in NetBeans.
  2. Right-click the project node.
  3. Select Update UML Model from the context menu.

Visual Paradigm creates UML models for elements that do not already exist and updates models for elements that are already represented.

Package-Based Reverse Engineering

Package-based reverse engineering allows developers to reverse engineer a specific Java package instead of processing the entire project.

The operation covers the selected package, its child packages, and the classes contained within them.

To reverse engineer a package:

  1. Locate the target package in a NetBeans project tree.
  2. Right-click the package.
  3. Select Tools > Visual Paradigm EE > Update UML Model.

Visual Paradigm creates or updates the corresponding UML package and class models.

Class-Based Reverse Engineering

Class-based reverse engineering allows developers to update UML models from an individual Java class.

The operation covers the selected class and its child classes, including inner classes.

To reverse engineer a class:

  1. Locate the Java class file in a NetBeans project tree or open it in the code editor.
  2. Right-click the class file or the relevant location in the code editor.
  3. Select Update UML Model.

Visual Paradigm creates or updates the UML representation of the selected class and its inner classes.

Generating Java Source Code from UML Models

Java code generation creates or updates Java source files based on UML models in Visual Paradigm. This allows developers to use UML class models as the structural design for their Java implementation.

Visual Paradigm provides three levels of code generation through NetBeans: project-based, package-based, and class-based.

Project-Based Code Generation

Project-based code generation updates the Java source files for the entire associated project based on the UML project.

Packages and classes are created when they do not already exist or updated when corresponding source files are already present.

To generate or update the entire Java project, developers can use any of the following methods:

  • Click the code generation command in the NetBeans toolbar.
  • Click the code generation command at the top of Diagram Navigator.
  • Right-click the root node of Diagram Navigator and select Update Project to Code.

Package-Based Code Generation

Package-based code generation updates the source files belonging to a selected UML package and its contained classes.

To generate or update Java source files from a package:

  1. Locate the UML package in a diagram or in Diagram Navigator, Model Explorer, or Class Repository.
  2. Right-click the package.
  3. Select Update to Code.

Visual Paradigm creates or updates the corresponding Java package and class source files.

Class-Based Code Generation

Class-based code generation updates the Java source file associated with an individual UML class.

To generate or update Java source code from a UML class:

  1. Locate the target UML class in a diagram or in Diagram Navigator, Model Explorer, or Class Repository.
  2. Right-click the class.
  3. Select Update to Code.

The corresponding Java class source file is created or updated.

Selecting a UML Class from Java Source Code

When a UML class has been associated with a Java source file through code generation or reverse engineering, developers can navigate from the source code to its corresponding UML representation.

Visual Paradigm provides two navigation options.

Select In Model

The Select In Model command locates the corresponding UML class in Model Explorer.

To use it:

  1. Locate the associated Java class file in a NetBeans project tree or open it in the code editor.
  2. Right-click the class file or the relevant location in the editor.
  3. Select Select In Model.

Visual Paradigm selects the corresponding UML class in Model Explorer.

Select In Diagram

The Select In Diagram command locates the diagram view of the corresponding UML class.

To use it:

  1. Locate the associated Java class file in NetBeans.
  2. Right-click the class file or the relevant location in the code editor.
  3. Select Select In Diagram.

If the UML class appears in multiple diagrams or has multiple visual representations, Visual Paradigm prompts the developer to select the view to open.

Selecting Java Source Code from a UML Class

Navigation also works in the opposite direction. Developers can open the Java source file associated with a UML class directly from Visual Paradigm.

To locate the corresponding Java source file:

  1. Locate the UML class in a diagram, Diagram Navigator, Model Explorer, or Class Repository.
  2. Right-click the UML class.
  3. Select Select in Code.

NetBeans opens the corresponding Java source file in its code editor.

This capability is especially useful when a developer identifies a class in a UML diagram and wants to inspect or modify its actual implementation.

How to Set Up and Use Visual Paradigm NetBeans Integration

The following workflows explain how to install the integration, establish a UML project association, and use the main model-to-code and code-to-model capabilities.

Installing NetBeans Integration

Before using the integration, make sure NetBeans is installed on the computer. The documented minimum supported version is NetBeans 6.7.

  1. Close NetBeans before beginning the installation.
  2. Launch Visual Paradigm Desktop.
  3. From the application toolbar, select Window > Integration > IDE Integration….
  4. In the IDE Integration window, select NetBeans Integration.
  5. Click Next.
  6. Specify the installation directory of NetBeans.
  7. Click Next to begin copying the integration files into the IDE directory.
  8. After installation is complete, launch NetBeans and check that the Visual Paradigm integration commands are available.

Installation note: Visual Paradigm NetBeans Integration can be installed into only one NetBeans installation directory at a time. If multiple IDE integrations are needed, Visual Paradigm allows users to select multiple supported IDEs during the integration setup process.

Windows permission note: The installation process adds or modifies files under the NetBeans installation directory. If the process encounters permission errors, restart Visual Paradigm using the Run as Administrator option and repeat the installation.

Creating a UML Project for an Existing Java Project

After installing the integration, developers can create a UML project for an existing Java project.

  1. Open NetBeans.
  2. Select the Java project that needs a UML model.
  3. Right-click the project node.
  4. Select Open Visual Paradigm EE.
  5. In the Project Structure window, specify where the Visual Paradigm project should be saved.
  6. Choose Create in default path or Create at external location.
  7. If desired, select Remember my decision when using the default path option.
  8. Click OK to create the UML project.

The new Visual Paradigm project is associated with the selected Java project and saved as a .vpp file.

Importing an Existing UML Project

To associate an existing Visual Paradigm project with a NetBeans Java project:

  1. Open NetBeans.
  2. Select the Java project that should be associated with the UML project.
  3. Right-click the project node.
  4. Select Visual Paradigm EE > Import Visual Paradigm EE Project….
  5. Specify the source .vpp project file.
  6. Specify where the imported UML project should be saved.
  7. Choose the default project directory or an external location.
  8. Click OK to complete the import.

Updating UML Models from Existing Java Code

Once the UML project is associated with a Java project, developers can update their UML models based on changes in the Java source code.

For a complete project update:

  1. Open the associated Java project in NetBeans.
  2. Right-click the project node.
  3. Select Update UML Model.
  4. Allow Visual Paradigm to process the project’s Java source files.
  5. Open the UML project to review the resulting models.

For more targeted updates, use the package-based or class-based reverse engineering commands instead of updating the entire project.

Updating Java Code from UML Models

When the UML design has been modified and the corresponding Java implementation needs to be updated, developers can use the code generation commands.

For a complete project update:

  1. Open the associated UML project through NetBeans.
  2. Open Diagram Navigator in Visual Paradigm.
  3. Right-click the root node of Diagram Navigator.
  4. Select Update Project to Code.
  5. Allow Visual Paradigm to create or update the corresponding Java packages and classes.
  6. Review the updated source files in NetBeans.

For smaller changes, developers can use Update to Code on an individual UML package or class.

After establishing the model-to-source association, developers can navigate between the two representations.

  • From NetBeans to Visual Paradigm: Right-click a Java class and select Select In Model or Select In Diagram.
  • From Visual Paradigm to NetBeans: Right-click the associated UML class and select Select in Code.

These commands make it easier to trace a class between its visual design and its Java implementation.

Practical Use Cases

Designing a New Java Application

A development team can start by creating UML class diagrams in Visual Paradigm to define the application’s classes and their relationships. After establishing the UML project association with the NetBeans Java project, developers can generate Java source files from the UML design.

This workflow helps establish a structured implementation starting point based on a visual design.

Documenting an Existing Java Application

When developers inherit an existing Java application without comprehensive UML documentation, they can reverse engineer its source code into UML class models.

Project-based reverse engineering is useful for visualizing the overall class structure, while package-based and class-based reverse engineering provide more focused alternatives.

Maintaining UML Documentation During Development

As Java source code evolves, developers can update the UML models through reverse engineering. When the design changes first, they can generate or update the corresponding Java source files.

This provides a practical model-to-code and code-to-model workflow for maintaining consistency between design documentation and implementation.

Investigating Class Relationships

Developers can use UML class diagrams to understand how classes relate to one another and then navigate to the corresponding Java files for implementation details. Conversely, they can select a class in NetBeans and locate its UML representation to understand its role within the overall design.

Working on Selected Parts of a Large Application

For large Java projects, updating the entire model or codebase may not always be necessary. Package-based and class-based operations allow developers to focus on the specific components they are modifying or reviewing.

Important Considerations and Limitations

Although Visual Paradigm NetBeans Integration provides a connected modeling and development workflow, developers should understand several important behaviors before using it.

One UML Project per NetBeans Java Project

A NetBeans Java project can be associated with at most one Visual Paradigm UML project through this integration. The documented workflow does not support creating multiple associated UML projects for the same Java project.

UML Project Association Cannot Be Removed Through the Documented Workflow

Visual Paradigm’s project creation documentation states that once a UML project has been created for a Java project, the association cannot be removed or detached. Developers should therefore choose the intended Java project and UML project location carefully before creating the association.

Only One NetBeans Installation Directory Can Be Integrated at a Time

The documented NetBeans integration installer supports installation into one NetBeans directory only. Users should select the intended NetBeans installation when configuring the integration.

Reverse Engineering Requires an Associated UML Project

Before using the documented NetBeans reverse engineering commands, developers must open the UML project associated with the Java project. The integration uses this association as the context for creating or updating UML models.

Code Generation Also Requires an Associated UML Project

Similarly, Java code generation through the NetBeans integration requires the associated Visual Paradigm UML project to be open. The integration uses that model as the source for creating or updating Java files.

Code Engineering Is Edition-Dependent

Having the NetBeans integration installed does not automatically mean that every edition includes Java code generation and reverse engineering. These code engineering capabilities require Standard Edition or above.

Integration Installation Modifies the IDE Directory

The integration installer copies or modifies files in the selected NetBeans installation directory. Users must have sufficient filesystem permissions to complete this operation.

Plugin Recognition May Require Troubleshooting

If the Visual Paradigm commands do not appear in NetBeans after installation, the integration plugin may not have been recognized correctly. Visual Paradigm recommends checking the NetBeans plugin configuration and, where necessary, deactivating other plugins and restarting NetBeans.

Troubleshooting Visual Paradigm NetBeans Integration

Visual Paradigm Menus Do Not Appear in NetBeans

Possible cause: NetBeans may not have recognized the Visual Paradigm integration plugin.

Recommended solution:

  1. Open NetBeans.
  2. Select Tools > Plugin to manage installed plugins.
  3. Check the plugin configuration.
  4. If the integration is not recognized correctly, try deactivating other plugins.
  5. Restart NetBeans and check whether the Visual Paradigm commands appear.

Installation Fails with a Permission Error

Possible cause: The current user does not have sufficient permission to modify files in the NetBeans installation directory.

Recommended solution: On Windows, close Visual Paradigm and restart it using Run as Administrator. Repeat the IDE integration installation and verify that the selected NetBeans directory is accessible.

Cannot Find the NetBeans Installation Directory

Possible cause: The installation directory has not been selected correctly or the IDE is installed in a different location.

Recommended solution: Locate the actual NetBeans installation directory and specify it in the Visual Paradigm IDE Integration setup window.

Cannot Update UML Models from Java Source Code

Possible cause: The Java project may not have an associated Visual Paradigm UML project open.

Recommended solution: Right-click the Java project and select Open Visual Paradigm EE. Once the associated UML project is open, retry the Update UML Model operation.

Cannot Generate Java Code from UML Models

Possible causes:

  • The associated UML project has not been opened from NetBeans.
  • The current Visual Paradigm edition does not include Java code engineering.
  • The UML project is not associated with the intended Java project.

Recommended solution: Verify the project association, open the UML project through NetBeans, and check that the Visual Paradigm license includes Java code engineering capabilities.

Uninstalling Visual Paradigm NetBeans Integration

If the integration is no longer required, developers can remove it through Visual Paradigm Desktop.

  1. Launch Visual Paradigm Desktop.
  2. Select Window > Integration > IDE Integration… from the application toolbar.
  3. Select the Uninstall radio button.
  4. Select NetBeans Integration.
  5. Click Next.
  6. Click Next again to proceed with file removal.

Visual Paradigm will remove the integration files from the selected NetBeans installation.

Frequently Asked Questions About Visual Paradigm NetBeans Integration

What is Visual Paradigm NetBeans Integration?

Visual Paradigm NetBeans Integration connects Visual Paradigm Desktop with the NetBeans IDE. It allows developers to create associated UML projects, generate Java source code from UML class models, reverse engineer Java source code into UML models, and navigate between corresponding UML elements and Java source files.

Does Visual Paradigm support Apache NetBeans?

Visual Paradigm documents NetBeans integration and specifies NetBeans 6.7 or above as its supported baseline. Developers using newer Apache NetBeans releases should verify compatibility with their Visual Paradigm version.

Which Visual Paradigm editions support NetBeans Integration?

NetBeans IDE integration is listed for Enterprise, Professional, Standard, Modeler, and Community editions. However, Java code generation and reverse engineering require Standard Edition or above.

Can I generate Java code from UML class diagrams in NetBeans?

Yes. With an associated UML project open, developers can generate or update Java source files from UML models. The integration supports project-based, package-based, and class-based code generation.

Can I reverse engineer Java source code into UML diagrams?

Yes. Visual Paradigm can reverse engineer Java source code into UML class models. Developers can update models from an entire Java project, a selected package, or an individual class.

Can I reverse engineer only one Java package?

Yes. Right-click the target package in NetBeans and select Tools > Visual Paradigm EE > Update UML Model. Visual Paradigm creates or updates UML models for the selected package, its child packages, and its classes.

Can I reverse engineer an individual Java class?

Yes. Right-click the Java class file in a project tree or code editor and select Update UML Model. The operation creates or updates the UML model for that class and its inner classes.

Can I generate Java code for just one UML class?

Yes. Right-click the UML class in a diagram or in Diagram Navigator, Model Explorer, or Class Repository and select Update to Code.

Can I update an entire Java project from a UML model?

Yes. With the associated UML project open, use the code generation command in the NetBeans toolbar, the command at the top of Diagram Navigator, or right-click the Diagram Navigator root node and select Update Project to Code.

Can I create a UML project from an existing NetBeans Java project?

Yes. Right-click the Java project in NetBeans and select Open Visual Paradigm EE. Specify the UML project storage location in the Project Structure window and click OK.

Can I import an existing Visual Paradigm project into NetBeans?

Yes. Right-click the intended Java project and select Visual Paradigm EE > Import Visual Paradigm EE Project…. Specify the existing .vpp file and the destination location for the imported UML project.

Where is the associated UML project saved?

By default, the UML project is saved in a vpproject folder under the NetBeans Java project directory. Alternatively, developers can select an external location.

What is the file extension of a Visual Paradigm UML project?

A Visual Paradigm project uses the .vpp file extension.

Can one NetBeans Java project have multiple associated UML projects?

No. According to the documented integration workflow, one Java project can be associated with at most one Visual Paradigm UML project.

Can I remove the association between a NetBeans project and its UML project?

The documented project creation workflow states that an existing association cannot be removed or detached through the integration.

Can I install the integration into multiple NetBeans directories?

The documented NetBeans integration installation supports only one NetBeans directory at a time.

How can I find the UML class corresponding to a Java source file?

Right-click the associated Java class file in NetBeans and select Select In Model to locate the UML class in Model Explorer, or select Select In Diagram to open its diagram representation.

How can I open a Java source file from a UML class?

Right-click the UML class in Visual Paradigm and select Select in Code. NetBeans opens the corresponding Java source file in its code editor.

What happens if a UML class appears in multiple diagrams?

When developers use Select In Diagram from the corresponding Java source file, Visual Paradigm prompts them to choose which diagram view to open if multiple views exist.

Why are Visual Paradigm commands missing from NetBeans?

The integration plugin may not have been recognized by NetBeans. Check the installed plugins under Tools > Plugin. Visual Paradigm recommends trying to deactivate other plugins and restarting NetBeans.

Why do I need administrator privileges to install NetBeans Integration?

The installation process modifies or adds files in the NetBeans installation directory. On Windows, administrator privileges may be required when the current account does not have permission to modify that directory.

Does NetBeans Integration automatically synchronize all changes in real time?

The documented workflow provides explicit commands for updating UML models from Java source code and updating Java source files from UML models. It should therefore be understood as command-driven model-to-code and code-to-model synchronization, rather than an automatic real-time synchronization process.

Is NetBeans Integration the same as Java round-trip engineering?

They are related but not identical concepts. NetBeans Integration connects Visual Paradigm with the IDE and provides project access, model navigation, and code engineering commands. Java round-trip engineering refers to the broader capability of generating Java code from UML models and updating UML models from Java source code.

Summary

Visual Paradigm NetBeans Integration connects UML modeling with Java application development by bringing Visual Paradigm’s modeling and code engineering workflows into the NetBeans environment.

Its main capabilities include:

  • Creating and importing UML projects associated with NetBeans Java projects.
  • Opening associated Visual Paradigm projects directly from NetBeans.
  • Reverse engineering Java source code into UML class models at project, package, and class levels.
  • Generating and updating Java source files from UML models at project, package, and class levels.
  • Navigating from Java source files to corresponding UML classes and diagrams.
  • Opening associated Java source files directly from UML classes.

By connecting visual design and source code, Visual Paradigm helps Java developers understand application structures, establish implementation from UML designs, and maintain UML documentation as software evolves.

For development teams that want to incorporate UML-based design into their existing NetBeans workflows, Visual Paradigm provides a practical environment for connecting software modeling and implementation.

Scroll to Top