- This topic has 5 replies, 2 voices, and was last updated 18 years, 2 months ago by Riyad Kalla.
-
AuthorPosts
-
nshuklaMemberHi,
Is there any documentation on how to use .xmi file with MyEclipse? I am trying to make changes to .xmi that I imported from Argo and I am not able to figure out how to make changes such as Add new class and element to the class diagram I just created dragging and dropping into the diagram pane… I also need to know how do I save the changes in the .xmi and export it.Thanks!
Riyad KallaMemberOur UML tool supports importing and exporting your UMR *model* (not diagram) to and from XMI files. You cannot contnue to use the XMI file after the operation is done, at that point your changes will be contained in the UMR file that you have imported into. If you want to keep persisting your changes to your XMI file, you will need to keep exporting your model to the XMI file.
I would point out there is no well-defined format for diagrams, it’s different from tool to tool, so the XMI file only ever contains model information.
nshuklaMemberRiyad,
Thanks for the response, I am having trouble exporting my .umr file as a whole into one .xmi. I have multiple packages in my model and I want to export everything from my umr to xmi, but it seems to me that when I right click on the diagram editor panel it only exports that particular diagram into the xmi, not the comlplete umr. Is there a way to export the entire model in .umr into one .xmi?Thanks
Riyad KallaMemberActually exporting should export everything under your model. What are you doing that is suggestnig that the entire thing isn’t getting exported?
nshuklaMemberRiyad,
Let me give you a step by step details of what i have done and want to do:I created a new Simple project called MyProject
I created a .umr file into my new project called MyProjectRepository
in that .umr file I clicked on “Import XMI” from the top menu and imported an .xmi file that was generated in Argo UML tool version .17
Now I have 2 options: I can open the XMI file and look at the diagrams that were automatically generated or I can open the Package Centric in umr and drag and drop the classes in the diagram panel to re-create the diagramsThe first option of opening the .xmi file and looking at the automatically generated diagrams is I cannot make changes to the fiagrams created (although I should be able to given that the options are there). I tried to add an attribute to an existing class and it didnt do anything. So one question is if I can add new classes in the diagram, why cant I add new attributes in the existing classes? when I right click on a class in the diagram panel it gives me an option to add new Attribute, but when I selsect it nothing happens
The second approach of dragging and dropping the umr classes into the diagram panel, the issue is if I have classes from referenced from different packages, they dont show up in the diagrams, I have to manually add them to the diagram. For example, I have a class named Address in a Package called “Groups” and I want to reference this class into a different package, when the xmi is expanded into classes and elements in the Package centric view, the referenced classes dont show up along with the classes in the packages. Is there a way to get the referenced classes to show up so I can drag and drop them to keep the model complete?
Now to the Export xmi question, I had one class diagram open in the diagram panel and I right clicked to “Export to xmi”. It seemed to export successfully but when I imported the same xmi back and opened it, It gave me an error. Once I was able to open the xmi but it only showed partial model information (missing packages and classes). The question I have is, do I need to highlight the top level model name in the package centric and the click on “Export to XMI” in the diagram panel? Does it matter what class diagram I have open at that time?
Your help is much appreciated, I am getting a little flustered with the lack of documentation or books available. My approach is I want to have a UML model and I want to be able to generate XML schemas out of the model, I am using hyper model as the plugin as well
Thanks
Nikki
Riyad KallaMemberNikki,
Can you send me this XMI file to support@genuitec.com ATTN Riyad with a link to this post so I know why I’m getting it? -
AuthorPosts