Skip to main content
Jump to: navigation, search

Difference between revisions of "MoDisco/Components/KDM/Documentation/0.7"

Line 155: Line 155:
[[Image:MoDisco-Kdm Source model in MoDisco browser.png|frame|center|KDM Source model viewed with MoDisco browser]]
[[Image:MoDisco-Kdm Source model in MoDisco browser.png|frame|center|KDM Source model viewed with MoDisco browser]]

Revision as of 09:15, 24 February 2011

Mailing ListForums
Help Wanted
Bug Day
Browse SourceProject Set File


The goal of the KDM to UML converter plug-in is to allow practical transformations of KDM models to UML models.


This tool aims at converting KDM models into UML models in order to allow integrating KDM-compliant tools (i.e. discoverers) with UML-compliant tools (e.g. modelers, model transformation tools, code generators, etc), as shown in the next figure.

Overall approach of the KDM to UML converter

The converter is mainly implemented by an ATL model-to-model transformation taking as input a model conforming to the KDM meta model and producing as output a model conforming to the KDM models into UML meta model.

The mapping between KDM and UML is described in the following table:

KDM to UML mapping
LanguageUnit Package
CodeModel Model
CodeAssembly Model
Package Package
ClassUnit Class
InterfaceUnit Interface
MethodUnit Operation
ParameterUnit Parameter
Extends, Implements Generalization
PrimitiveType PrimitiveType
MemberUnit Property, Association

This mapping can be changed or completed easily by updating the ATL rules.

The converter can also generate a trace file of the transformation to UML and a transformation log.


To use the plug-in you need:



You will find a version of this plug-in in SVN repository.

Here are installation instructions :

  • Import the project in your workspace using a SVN client.
  • Use the "export" menu to export this project as a plug-in (Deployable plug-ins and fragments) in your Eclipse installation. Don't forget to choose the "Package plug-ins as individual jar archives" option.
  • Re-start your Eclipse to take this plug-in into account.

Connection parameters to the SVN repository: MoDisco/SVN.


You could download an archived site or use the update site of MoDisco.

User manual

The plug-in also provides the user with a contextual menu in order to create models easily. By right-clicking on a KDM model in the Eclipse Package Explorer view you can generate the UML model, with or without traces (see next figure).

Generating a UML model from a KDM model

From a KDM source model:

KDM model

We obtain a UML target model :

UML model

This UML model can be displayed in any modeler:

UML diagram

Current Limitations

The bidirectional UML Association elements are not identified by the rules: two complementary unidirectional UML Association elements are generated.

KDM Source Discoverer

The goal of the KDM Source Discoverer plug-in is to allow practical extractions of KDM Source models from the file hierarchy of an application.


This plug-in aims at analyzing the file system hierarchy of an application and providing a model describing the information found, conforming to KDM Source sub package. (see next Figure)

KDM Source Metamodel (from the KDM Specification v 1.1)

The Source package defines a set of meta-model elements whose purpose is to represent the physical artifacts of the existing system, such as source files, images, configuration files, resource descriptions, etc.

Overview of the KDM Source Discoverer

For an input folder, the KDM source discoverer visit each folder and file. For each file, it creates the appropriate sub class of InventoryItem using the Resources content type API. This plugin defines its own content types to properly classify file types.


To use the plug-in you need:

  • JDK 1.5 or above
  • a version of Eclipse 3.3 or above with the following set of plugins installed

Source Repository

All of the source code is stored in a public source repository, which you can access at:

You can also browse it through the Web interface.

User manual

The plug-in provides the user with a contextual menu to easily create models.

By right-clicking on a container (folder or project) in the Eclipse Package Explorer view, you can quickly create the KDM Source model of your application (see next Figure). Each of these models can then be used with any other tool compliant with the corresponding metamodel.

Menus in Eclipse to create KDM Source model

A progress bar will appear at the bottom of the window as soon as the operation begins. Depending on the size of your application, the reverse engineering might take some time to complete (see next Figure).

Progress bar during models creation

At the end of the process, the newly created model file is added at the root of your project and is automatically opened in the default editor (see next Figure).

KDM Source model in the package explorer

It can be opened in MoDisco model browser (see next Figure) which brings some graphical improvements.

KDM Source model viewed with MoDisco browser

Components Infrastructure: KDM · SMM · GASTM · Model Browser · Discovery Manager · MoDisco Workflow · Query Manager · Facet Manager · Metrics Visualization Builder · KDM Source Extension
Technologies: Java · JEE · EjbJar · WebApp · XML
Use Cases: Simple Transformation Chain · Model Filter
Help Installation · SVN
Project API Policy · Retention Policy · Project Plan · metrics · Accessibility Guidelines · Capabilities Disablement

Copyright © Eclipse Foundation, Inc. All Rights Reserved.