Eclipse Modeling Tools
Adds the Modeling wizards and User Interface to the Eclipse Tools.
Download Eclipse Modeling Tools 3.2.2 for EasyEclipse 1.2.2:
Download Eclipse Modeling Tools 3.3.0 for EasyEclipse 1.3:
This plugin lets you create and manipulate EMF models. EMF models are abstract models that can represent Java classes, XML documents (based on an XML Schema) or other structured set of data. JEF (Java EMF Model) is a specific library for Java modeling.
Using the Eclipse Graphical Editor Framework (GEF), you can also generate GUI editors (tree-based, list-based, lists with columns...) for the models you have defined.
This SDK version contains the corresponding full SDK for each plugins, and brings additional development utilities, examples, help and sources for use when developing with those frameworks.
Note that the generated editors are packaged as Eclipse (OSGi) bundles (plug-ins): to run them, you will need to install the Plugin Development Environment plugin.
There is currently one comment for this plugin. You can review it and add more here.
This plugin is in the EasyEclipse for Plugins and RCP Apps distribution.
Help is available for this plugin, in the Help > Help Contents menu in EasyEclipse.
However, the Help only contains documentation for GEF, which is actually only an API an has no user interface. You can find some example for GEF in CVS. Create a new CVS project, create the new repository location:
:pserver:email@example.com:/home/tools, and use the existing modules starting with
org.eclipse.gef.examples, for example
org.eclipse.gef.examples.text. If the Plugin Development Environment is part of your installation, you can run the editor by right-clicking on the projects, and selecting Run As > Eclipse Application.
For EMF, here is a basic tutorial:
- On your hard drive, save the following as an XML schema file (for example
<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/SimplePO" xmlns:PO="http://www.example.com/SimplePO"> <xsd:complexType name="PurchaseOrder"> <xsd:sequence> <xsd:element name="shipTo" type="xsd:string"/> <xsd:element name="billTo" type="xsd:string"/> <xsd:element name="items" type="PO:Item" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="Item"> <xsd:sequence> <xsd:element name="productName" type="xsd:string"/> <xsd:element name="quantity" type="xsd:int"/> <xsd:element name="price" type="xsd:float"/> </xsd:sequence> </xsd:complexType> </xsd:schema>
- In Eclipse, select File > New > project, then Eclipse Modeling Framework > EMF Project.
- Give a name to the project, hit Next, choose XML Schema in the drop-down, hit Next.
- Click browse file system and select the file that you created above. Click Next, then Finish.
- In the newly created project, open the file with extension
.genmodel. In the opened file, right-click on "Po" and, in the contextual menu, select Generate all. Three new projects should be generated, corresponding to an Data provider (
editproject), a structured editor for this model (
editorproject), and a test project.
- If the Plugin Development Environment is part of your installation, you can run the editor by right-clicking on the
editorproject, and selecting Run As > Eclipse Application. A new Eclipse instance starts.
- In this new instance of Eclipse, select New > Project, then General > Project, name it and hit Finish.
- Right-click on the new project, and select new > Other, then Example EMF Model Creation Wizards > Po Model. Hit Next. Leave the default value for file
My.po, and hit Next again. In the Model Object field, select Purchase Order, and hit Finish.
- A new structured editor opens for the file
My.po. This editor has 6 tabs, each representing an example of an editor created by EMF, following the XML Schema file specified originally.
- Eclipse Modeling Tools home: Eclipse Tools Project home
- Project site: Home page of the GEF project
- Project site: Home page for EMF, SDO and XSD
- Project site: Visual Editor Project home page. JEM is part of VEP
Changes in EasyEclipse 1.3.0:
- Upgraded to Eclipse Modeling Tools 3.3.0: With GEF 3.3.0, EMF/SDO/XSD 2.3.0 (JEM is unchanged).
- Upgraded to new version: With EMF/SDO/XSD 2.2.3 and JEM 1.2.3..
- Initial release: With EMF/SDO/XSD 2.2.0 and JEM 1.2.0. Patched to re-add user interface removed from Eclipse Tools..
Credits: Eclipse Foundation
Copyright (c) Eclipse contributors and others. 2000-2007. All rights reserved.
This plugin is licensed under the Eclipse Public License 1.0 license.