Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "MoDisco/JavaDiscoverer2"

(Description)
m
Line 1: Line 1:
The goal of Java Discoverer plugin is to allow practical extractions of [[MoDisco/Java|Java models]] from a Java project.
+
The goal of the Java Discoverer plug-in is to allow practical extractions of [[MoDisco/Java|Java models]] from Java projects.
 
+
  
 
== Description ==
 
== Description ==
  
This plugin aims at analysing Java source code compliant with version 3 of "Java Language Specification" from Sun Microsystems and providing a model describing the information found, conform to the [[MoDisco/Java|Java metamodel]].
+
This plug-in aims at analyzing Java source code compliant with version 3 of "Java Language Specification" from Sun Microsystems and providing a model describing the information found, conforming to the [[MoDisco/Java|Java metamodel]].
  
A [[MoDisco/Java|Java model]] will contain the full abstract syntax tree of the Java program : each statement such as attribute definition, method invocation or loop is described. In addition, links between elements are resolved (by resolved link we mean for instance a link between a method invocation and the declaration of this method, or the usage of a variable and its declaration). The model can thus be seen as an abstract syntax graph (ASG).
+
A [[MoDisco/Java|Java model]] contains the full abstract syntax tree of the Java program: each statement such as attribute definition, method invocation or loop is described. In addition, links between elements are resolved (by resolved link we mean for instance a link between a method invocation and the declaration of this method, or between the usage of a variable and its declaration). The model can thus be seen as an abstract syntax graph (ASG).
  
 
== Requirements ==
 
== Requirements ==
Line 12: Line 11:
 
To use the plug-in you need:
 
To use the plug-in you need:
 
* JDK 1.5 or above
 
* JDK 1.5 or above
* a version of Eclipse 3.3 or above with the following set of plugins installed
+
* a version of Eclipse 3.3 or above with the following set of plug-ins installed
 
:* [[EMF|EMF]] 2.3.0 or higher
 
:* [[EMF|EMF]] 2.3.0 or higher
 
:* [[ATL|ATL]] 2.0.0 or higher
 
:* [[ATL|ATL]] 2.0.0 or higher
Line 32: Line 31:
 
== User manual ==
 
== User manual ==
  
The plugin provides the user with a contextual menu to easily create models.
+
The plug-in provides the user with a contextual menu to easily create models.
  
 
By right-clicking on a Java Project in the Eclipse Package Explorer view, you can quickly create the Java model of your application (see next Figure).
 
By right-clicking on a Java Project in the Eclipse Package Explorer view, you can quickly create the Java model of your application (see next Figure).
Line 39: Line 38:
 
[[Image:MoDisco-JavaDiscoverer popup.png|frame|center|Menus in Eclipse to create model from source code]]
 
[[Image:MoDisco-JavaDiscoverer popup.png|frame|center|Menus in Eclipse to create model from source code]]
  
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).  
+
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 process might take some time to complete (see next Figure).  
  
 
[[Image:MoDisco-JavaDiscoverer progress bar model creation.png|frame|center|Progress bar during model creation]]
 
[[Image:MoDisco-JavaDiscoverer progress bar model creation.png|frame|center|Progress bar during model creation]]
  
At the end of the process, the newly created model files are added at the root of your project and are automatically opened in the default editor (see next Figure).
+
At the end of the process, the newly created model files are added to the root of your project and are automatically opened in the default editor (see next Figure).
  
 
[[Image:MoDisco-JavaDiscoverer Java model.png|frame|center|Java model in the package explorer]]  
 
[[Image:MoDisco-JavaDiscoverer Java model.png|frame|center|Java model in the package explorer]]  
  
.javaxmi files could be opened in the Sample Ecore Model Editor (see next Figure).
+
.javaxmi files can be opened in the Sample Ecore Model Editor (see next Figure).
  
 
[[Image:MoDisco-JavaDiscoverer Java in EMF browser.png|frame|center|Java model viewed with EMF browser]]
 
[[Image:MoDisco-JavaDiscoverer Java in EMF browser.png|frame|center|Java model viewed with EMF browser]]
  
They could also be opened in MoDisco model browser (see next Figure) which brings some graphical improvements.
+
They can also be opened in the MoDisco model browser (see next Figure) which brings some graphical improvements.
  
 
[[Image:MoDisco-JavaDiscoverer example Java SimpleModel.jpg|frame|center|Java model viewed with MoDisco browser]]
 
[[Image:MoDisco-JavaDiscoverer example Java SimpleModel.jpg|frame|center|Java model viewed with MoDisco browser]]

Revision as of 15:54, 12 January 2010

The goal of the Java Discoverer plug-in is to allow practical extractions of Java models from Java projects.

Description

This plug-in aims at analyzing Java source code compliant with version 3 of "Java Language Specification" from Sun Microsystems and providing a model describing the information found, conforming to the Java metamodel.

A Java model contains the full abstract syntax tree of the Java program: each statement such as attribute definition, method invocation or loop is described. In addition, links between elements are resolved (by resolved link we mean for instance a link between a method invocation and the declaration of this method, or between the usage of a variable and its declaration). The model can thus be seen as an abstract syntax graph (ASG).

Requirements

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 plug-ins installed

Team

Gabriel Barbier (Mia-Software)

Fabien Giquel (Mia-Software)

Frédéric Madiot (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.discoverer/

User manual

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

By right-clicking on a Java Project in the Eclipse Package Explorer view, you can quickly create the Java model of your application (see next Figure).


Menus in Eclipse to create model from source code

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 process might take some time to complete (see next Figure).

Progress bar during model creation

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

Java model in the package explorer

.javaxmi files can be opened in the Sample Ecore Model Editor (see next Figure).

Java model viewed with EMF browser

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

Java model viewed with MoDisco browser

Back to the top