Jump to: navigation, search

Difference between revisions of "MoDisco/JavaGeneration"

Line 1: Line 1:
 
The goal of Java Generation plugin is to allow Java code generation from a [[MoDisco/Java|Java model]].
 
The goal of Java Generation plugin is to allow Java code generation from a [[MoDisco/Java|Java model]].
 +
Such a generation will fullfill some of the requirements for Legacy refactoring & migration.
  
 
== Description ==
 
== Description ==
Line 9: Line 10:
  
 
Java models are obtained with [[MoDisco/JavaDiscoverer2|Java Discoverer]] component.
 
Java models are obtained with [[MoDisco/JavaDiscoverer2|Java Discoverer]] component.
 +
 +
Considering a Java legacy, a minimal migration/refactoring chain will involve :
 +
 +
* A Java model discovery step
 +
* A m2m transformation step
 +
* A Java generation code step with the current component
  
 
== Requirements ==
 
== Requirements ==
Line 29: Line 36:
  
 
== User manual ==
 
== User manual ==
 +
 +
Create a Accelo launch configuration pointing to Generate_JavaStructures java class, and specify the input model and target folder
 +
Or
 +
Use the Generate_JavaStructures main method with input model and target folder as parameters.

Revision as of 12:26, 11 January 2010

The goal of Java Generation plugin is to allow Java code generation from a Java model. Such a generation will fullfill some of the requirements for Legacy refactoring & migration.

Description

This plugin proposes (Acceleo) MTL modules for generating Java files conforming to Java models. Templates are contained in two modules :

  • Structures modules : top level templates for generating classes/method/field declarations
  • Statements modules

Java models are obtained with Java Discoverer component.

Considering a Java legacy, a minimal migration/refactoring chain will involve :

  • A Java model discovery step
  • A m2m transformation step
  • A Java generation code step with the current component

Requirements

To use the plug-in you need:

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

Team

Fabien Giquel (Mia-Software)

Source Repository

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

https://dev.eclipse.org/svnroot/modeling/org.eclipse.gmt.modisco/plugins/trunk/org.eclipse.gmt.modisco.java.generation/

User manual

Create a Accelo launch configuration pointing to Generate_JavaStructures java class, and specify the input model and target folder Or Use the Generate_JavaStructures main method with input model and target folder as parameters.