uml und emf - jugs

7

Upload: others

Post on 24-May-2022

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: UML und EMF - JUGS

� ������������ �������������������������

�������� ���

Page 2: UML und EMF - JUGS

� ������������ �������������������������

����������������� ���

EMF – CoreThe core EMF framework includes a meta model (Ecore) for describing models and runtime support for the models including change notification, persistence support with default XMI serialization, and a very efficient reflective API for manipulating EMF objects generically.

EMF.Edit –The EMF.Edit framework includes generic reusable classes for building editors for EMF models. It provides

1. Content and label provider classes, property source support, and other convenience classes that allow EMF models to be displayed using standard desktop (JFace) viewers and property sheets.

2. A command framework, including a set of generic command implementation classes for building editors that support fully automatic undo and redo.

EMF.Codegen –The EMF code generation facility is capable of generating everything needed to build a complete editor for an EMF model. It includes a GUI from which generation options can be specified, and generators can be invoked. The generation facility leverages the JDT (Java Development Tooling) component of Eclipse.

Page 3: UML und EMF - JUGS

� ������������ �������������������������

����������������� ���

�������!"��!���#�����$�!�

1. Model - provides Java interfaces and implementation classes for all the classes in the model, plus a factory and package (meta data) implementation class.

2. Adapters - generates implementation classes (called ItemProviders) that adapt the model classes for editing and display.

3. Editor - produces a properly structured editor that conforms to the recommended style for Eclipse EMF model editors and serves as a starting point from which to start customizing.

Page 4: UML und EMF - JUGS

� ������������ �������������������������

�������������������

The UML2 project (an Eclipse Tools sub-project) is an EMF-based implementation of the UML 2.0 metamodel for the Eclipse platform.

Goals:Provide a useable implementation of the metamodel to support the development of modeling tools Provide a common XMI schema to facilitate interchange of semantic models Provide test cases as a means of validating the specification and implementation Provide validation rules as means of defining and enforcing levels of compliance

Page 5: UML und EMF - JUGS

� ������������ �������������������������

������������������

�!������$�!���#�����$�!�

The UML2 API does not directly support code generation. There is, however, an import wizard included in the examples plug-in that can be used to create an Ecore model (*.ecore) from a UML2 model (*.uml2). Once you have an Ecore representation of your model, you can, of course, generate code from it using EMF.

No graphical viewNo direct export to UML Tools

Page 6: UML und EMF - JUGS

� ������������ �������������������������

�������������������

%���������

&!!�'���$�����

� #����������� �����!���$�"(���$��!����

� ����!"���

)!�$���*

������'�'!""��$���'����"��'��������$����'��!���!��������+����'�,,,,�-�����.�/� �$�������0

��$�������������1!�������������!������� ���2��

Page 7: UML und EMF - JUGS

� ������������ �������������������������

����� ������������

'$$�*33444.!�!��!.��