A wizard is available that provides support when importing a model with an XMI description.
You need to have created a Web Dynpro project to be able to create a Web Dynpro model. You should also look up the Conditions for an XMI Model Import that need to be taken into account.
To create a Web Dynpro model, you should always start from the Web Dynpro Explorer. Carry out the following steps:
1. Choose the context menu entry Create Model on the Models node.
2. In the model wizard, choose Import Web Dynpro Model from UML Definition (XMI format).
3. Enter a model name and a package name. You do not have to specify an existing package, as you can create a new one in the wizard.
4. Enter the path to the XMI description of your external model. The external model file must have the extension .xmi or .xml.
5. For the build and deploy process of a Web Dynpro application, you must create a JAR file, to which you add all the Java classes and interfaces that belong to or are used by the model described in the XMI file.
6. Store this JAR file locally in the subdirectory /lib of the Web Dynpro project.
7. To make the JAR file available to the Web Dynpro project, choose the context menu entry Properties → Java Build Path → Libraries → Add JARs for your Web Dynpro project on the Package Explorer tab and add the JAR file.
8. To start the display and change mode for the imported model classes, open the Model Editor view by choosing Edit in the context menu for the model in the Web Dynpro Explorer.
As well as on overview of the model classes, the Model Editor View also provides additional tabs for displaying the properties, relations, and methods of the class.
See also: