Hi, I have to create plugin in eclipse for reverse engineering from DDL script to UML schema relational database. I've used JSQLParser, created Java represation and XMI file. Now I have to generate UML schema from that XMI file. How can I do that?
This was the newsgroup for the UML2 Tools graphical UML support. It is now pretty much dead; superseded by Papyrus. This is a model transformation question better suited to the MMT newsgroup.
Since you have converted your DDL script to XMI you presumably have a DDL model that you 'just' need to convert to a UML model. UML to RDBMS is the stock example for many M2M languages and papers. Unfortunately most implementations differ in their support for subtleties such as (multiple) inheritance, compound attributes, name clashes, ... so there is no standard implementation. You need the opposite direction and so you could use the inverse of the QVTr bidirectional exposition in the QVT specification or search the literature for a better exercised bidirectional version.
Your initial question suggested that you had a schema model, when actually you already have a UML model except that it isn't.
There is an obvious "ownedAtribute" typo for a parameter and many other things look smelly; xml:type, Class not in Package, unresolved types, .... The UML Model editor hates it. I suggest you debug your UML generator or better generate a UML model in memory and then use the Eclipse UML serializer.
Once you have a valid UML model, opening it in Papyrus is pretty trivial. Use the Model Explorer menus.