Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

MoDisco/Components/J2SE5

< MoDisco‎ | Components
Revision as of 17:52, 16 February 2009 by Gbarbier.mia-software.com (Talk | contribs) (Main meta classes)

The J2SE5 meta model : it is the reflect of Java language, as it has been defined in version 3 of "Java Language Specification" from Sun Microsystems ("JLS3" corresponds to JDK 5).

J2SE5 meta model contains 101 meta classes. To better understand it, this page will introduce main features (meta classes and links).

You could also browse definition model, j2se5.ecore available in sources (see install section).

A good tip is also to see javadoc associated to meta model implemented by Eclipse team in project JDT (Java Development Tool). This meta model and J2SE5 are very similar.


Main meta classes

ASTNode

Every meta classes (without meta class Model) inherit from ASTNode. As its name indicate it, ASTNode represent a graph node. ASTNode has a reference to Comment meta class because almost every java element could be associated to a comment (bloc or line comment and Javadoc). More details in "Comment" section.

ASTNode meta class

Model, Package, AbstractTypeDeclaration

Root element of each J2SE5 model in an instance of "Model" meta class. It is a translation of java application concept, so it contains package declarations (instances of PackageDeclaration meta class). And package declarations contain type declarations (instances compatible with AbstractTypeDeclaration), and so on ...

Model, Package & type declarations

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 plugins installed
  • EMF 2.3.0 or higher


Install

You will find a version of this plug-in attached in following bug.

As IP review of this plugin is not finished, here is installation instructions :

  • Extract archive file in your Eclipse workspace, then use "import" menu to import this project.
  • Use "export" menu to export this project as a plugin (Deployable plugins and fragments) in your Eclipse installation. Don't forget to choose "Package plug-ins as individual jar archives" option.
  • re-start your Eclipse to take in account this plug-in

Back to the top