Eclipse UML2 Tools

Source: Internet
Author: User

Development Environment:To use the Eclipse UML2 Tools plug-in, the configuration of the environment is important and my development environment is as follows: L jdk1.5.0_01 l Eclipse 3.3m6 l emf-sdo-xsd-sdk-2.3.0 M6 l EMFT-QUERY-SDK-1.1M6 l EMFT-TRANSACTION-SDK-1.1M6 l EMFT-VALIDATION-SDK-1.1M6 L gef-a LL-3.3M6 l GMF-SDK-2.0M6 l MDT-OCL-SDK-1.1M6 l MDT-UML2-SDK-2.1M6 l mdt-uml2tools-sdk-1.0. 0m6bBrief IntroductionThis article introduces you to the process of using UML2 tools to create a new model. We use a simple model as an example, and the model diagram designed with Rose is as follows:New ProjectLfile>new>project ...,In the dialog box that pops up, selectEclipse Modeling Framework>Empty EMF ProjectClickNextbutton, in the dialog box, enter the name of the project: Umltools, DotFinishbuttonNew ModelLfile>new>other ..., in the dialog box that pops up, selectexamples>Umlclass DiagramClickNextbutton, in this dialog box you can specify the UML class diagram file name and location, enter filename test.umlclass_diagram and file Store path Umltools/model, click "Nextbutton, in which you can specify the UML file name and store path, enter filename test.uml and file Store path Umltools/model, point "Finishbutton, the system automatically opens the Class Diagram editor, as shown in the figure: new base typeL Select the editor, on the property Page Name property, enter test, as shown: L Select PrimitiveType on the Class Diagram editor palette, drag to the edit area, enter the Name property (string), and then create a new string base type. New base type float and long;New ClassL Check Class Diagram editor palette, drag to edit area, enter name attribute (customer), create new Customer class, same operation, new class order;new PropertyL select attribute on class Diagram Editor palette, drag to class customer, enter Name property (name), select Type Attribute (<primitivetype>string), and create new name property for the customer class , the same operation, the ID and the price attribute of the new class order;New AssociationL Select the Association>composite Aggregation on the class Diagram editor palette, associate Class Customer and order, and enter the name attribute (customer_orders); L in Custome R class, select the association of the attribute as <association>customer_orders, select the Type property to <class>order, and enter the lower property of 0. The upper property is-1;Save ModelSave the model so that a simple model is created and finished. 

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.