Original Eclipse EMT Papyrus Modeling and MODISCO reverse engineering

Source: Internet
Author: User
Tags argouml

http://m.blog.csdn.net/blog/zxhcloth/23451849

Original Eclipse EMT Papyrus Modeling and MODISCO reverse engineering

2014-4-11 Read 1195 comments 0

I seldom write a blog before, given that Eclipse EMT modeling Chinese material is relatively small, many students want to use it, do not have to, write a blog to do a simple guide. Modeling has always been used in the PowerDesigner, but this is a commercial version, has always wanted to find its replacement from open source free domain.

After analysis, the ARGOUML and Eclipse Modeling are basically selected.

ARGOUML is very simple, basically can meet the daily needs, including modeling and reverse engineering, do not want to toss the students to use it enough. But it has not been updated for a long time, UML2.0 not very good support (personal knowledge is limited, may not be very accurate), so still want to study the eclipse Modeling. ARGOUML Official website: http://argouml.stage.tigris.org/

This article is based on Eclipse 4.3.2-kepler's Eclipse Modeling tools download package (a package preloaded with Modeling related basic plugins), download: http://www.eclipse.org/ DOWNLOADS/PACKAGES/ECLIPSE-MODELING-TOOLS/KEPLERSR2, with papyrus to do modeling, with Modisco to do reverse engineering.

First, papyrus modeling

1. Install papyrus plug-in

Click Install Modeling components, tick papyrus in the pop-up window, and download the update.

2. Create Papyrus Project

File-new-papyrus-papyrus Project

Open Perspective:papyrus, you'll see a model in the Model Explorer view, where you can create individual diagram with the right button.

3. UML to Java

Papyrus is supported by UML to generate Java or C + + code, in the Model right-click menu has generated options. However, it needs QVT support here, if not installed QVT plug-in, it will be reported "no classes or packages produced from the transformation. Nothing is generated. " Wrong.

Install QVT: Also click Install Modeling components, tick "operational QVT" to download the installation, the installation after the success of the production code is OK

Second, Modisco reverse engineering

1, install Modisco plug-in, installation method ibid.

2. Create a Java project and create a good test package and related classes

3. Create a UML folder in the root directory

4, the project name "right button" Discovery-discoverers-discover KDM Code Model from Java project ...

In the pop-up box, set Serialize_target to True to finish, and the root directory generates a MY-PROJECT_KDM.XMI to move it into the UML folder.

5. Create the papyrus model in the UML folder and name it as the Java project name, this is My-project.di

6, select My-project_kdm.xmi "right button", Discovery-discoverers-discover UML model from KDM model ...

Set Serialize_target to True in the pop-up box, complete, and the directory will generate a file my-project.uml, move it into the UML folder, prompt for replacement, yes.

7. Cut into papyrus Vista, see Root model in Model Explorer, right-new diagram-create a new Class Diagram

The object to be modeled is dragged into the diagram (this is a bit not very convenient here, to the object of the drag, including methods, properties, relationships, etc., do not drag on the display), you can see the complete model.

Simple guidance to this, the rest of the more complex use of the people themselves slowly study it, such as the use of Acceleo, and so on, I hope to have the necessary help.

Original Eclipse EMT Papyrus Modeling and MODISCO reverse engineering

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.