How can i generate domain model diagrams, and documentation - import

I imported my project files into Enterprise Architect, under the Domain Model section. The program imported the files correctly, but it did not create domain model diagrams, so i can generate documentation about it, but it is empty.
If i imported the project files under the Class model section, class diagrams creates, and i able to generate documentation correctly. But i need the Domain Model.
So, how can i generate domain model diagrams, and a correct documentation with them?

There's no point in having EA generate diagrams for you (although that is possible as well). The only thing that will do is create huge, unreadable "wallpaper" diagrams.
You better create the diagrams yourself.
Just add a diagram in a package and start dropping classes onto it.
Once you have usable diagrams you can generate your documentation.

Related

How do you create a Reports diagram in Enterprise Architect?

I am trying to create a Reports diagram with a model document and report specification in Enterprise Architect. The embarrassing part of this is that I've done this before, but can't work out how I did it. And I didn't take notes which I probably should do since this is something like a once every 2 years task for me.
In an older EA project, I have model document w/ custom templates in a reports diagram that will generate a data dictionary. Works great and I want that same thing for an EA project for a different, unrelated project.
But I can seem to figure out the first step, which is that Reports Diagram.
I am using version EA 13.0.1307.
Make sure you have the required MDG technology active.
You need the Core Extentions MDG to be able to create documentation diagrams
Create a Documentation Diagram
When creating a new diagram select Extented from the left pane, and Documentation from the right pane
Now the toolbox should show the elements you need to create your virtual document.

Generate full class diagram using GraphViz and Doxygen

I'm currently working on my internship, and for the company's sake I decided to just go ahead on the programming work. For my current internship that seemed to fit better than to create all kinds of diagrams no one gets or uses.
Now I ran into a problem though. 4 weeks of internship and 50 java-classes later my school decided they want to see a class diagram. I've already got doxygen set up with GraphViz to generate partial class diagrams, with the focus on only one of the classes and it's associations. But what I wonder is, is it possible to generate one class diagram containing all relations from all classes? Or am I gonna have to try to convince my school that this way the class diagrams have better readability?
The short answer is that this is not possible. Doxygen parses the code and includes only classes in the diagrams which are in any direct or indirect relationship with the documented class.
A general class diagram containing all classes and their associations is not generated by doxygen.
Play araound with the diagram options of doxygen to see with graphs make sense for you (either using the "doxywizard" [Wizard tab -> Diagrams or Expert tab -> Dot] or as I prefer editing directly the doxyfile).
I don't believe that a class diagram with more than 50 classes makes sense, because this would result in a hard to read diagram which is more confusing than helping. (Generally it might be better to organize your code in packages which you might document using the grouping feature of doxygen. In that case you could use the collaboration diagrams to show more high level relations between the packages.)
Another approach might be using a UML/CASE tool to generate UML diagrams from your code (e.g. Enterprise Architect from Sparx Systems, you could import your code and let the tool generate class diagrams out of it). You could include such generated graphs by exporting that graphs as picures and including that pictures in your doxygen generated documentation using the \image tag.
I hope this helps.

Switching from Rhapsody to Eclipse (Papyrus) - UML model conversion?

Our team has been using Rhapsody for developing UML models and c++ code for 10+ years, and we would like to switch to Eclipse and use Papyrus for UML modeling.
We have compatibility concerns: would the UML models (all class diagrams, state machines etc) created in Rhapsody be all portable to Papyrus/Eclipse easily? Rhapsody can export UML models into XMI files (UML 2.1, 2.2, 2.3 standards). My questions is: is Papyrus able to reconstruct diagrams from XMI files
If not, are there better alternative UML plugins that work in Eclipse?
The XMI file exported by Rhapsody contains only meta data of the models. Is there a quick way to port the entire project from Rhapsody into Eclipse? Anybody experienced the similar?
Your answers will be much appreciated.
First, I must mention that I am directly involved with Papyrus, especially with the brand new Papyrus for Real Time project, at Eclipse.
First to set expectations... Moving diagrams between modeling tools has always been an exercise in frustration... There have been "standards" over the years (e.g., OMG's XMI-DI), but none seem to have been fully successful and all have necessitated a manual review. Note that I have not tried with the latest version of UML (2.5).
Now the model semantics, however, have a tendency to be more portable, especially with more recent versions of UML. I am not sure which version Rhapsody pretends to support, so it would be difficult to comment further.
With the version of Papyrus that is currently in development (with a scheduled June 2015 release), the notion of "canonical" diagram has been added. This provides for automatic creation and update of some diagrams under certain condition. for example, many behaviour diagrams, such sequence diagrams and some structure diagram, such as composite structure, can be canonical and generated from the semantic model. However, layout would still need to be adjusted. Other diagrams, such as class diagrams, would have to be manually re-created.
As was mentioned in the comment to your question, trying it out would give you the best indication of how much work is involved.
I am interested in this topic and I did a simple research on it: in fact a connector between RSA and Ppayrus is already open source https://www.eclipse.org/forums/index.php/t/835114/ it could be usefull to take a look at it and implement the same for Rhapsody.
I know that the Rhapsody XMI export did not export the graphical elements, you should probably then export them in a serialized format and mapping htem to papyrus diagram element.
other interested work but seems not to be free : modelbus https://www.modelbus.org/en/rhapsody.html which implement connectors with Papyrus EA and Rhapsody : could be also interesting to look at.
I am interested in your feedback if you did not let it down and do achive the mapping :)

GEF - How to open GEF application on ViewPart application

I am newbe in GEF development.
I had created one GEF application using Draw2D apis.
Application contains Two tree viewers. I need to draw connection to connect children of these trees. I also want to keep control on these connection so that I can able to delete them. I need to draw 1-1 and N-1 kind of connections.
I need to embed this application within an RCP application which I already have and want to show it as a view within my specific Perspective.
Additionally, I have my own data model.
I want to know that to convert my model to GEF understandable model format what changes do I need to make with my model.
What you want to essentially do is create an Eclipse modeling project. The way it works is by creating your own EMF models. All your tree nodes with their attributes are "modelled" in EMF.
Then you can convert this model to an GEF/Draw2d Diagram using something called GMF(Graphical Modeling Framework).
EMF :
The EMF project is a modeling framework and code generation facility
for building tools and other applications based on a structured data
model. From a model specification described in XMI, EMF provides tools
and runtime support to produce a set of Java classes for the model,
along with a set of adapter classes that enable viewing and
command-based editing of the model, and a basic editor.
http://www.eclipse.org/modeling/emf/
GMF :
The GMF Tooling project provides a model-driven approach to generating
graphical editors in Eclipse.
http://www.eclipse.org/modeling/gmp/?project=gmf-tooling
Tutorial :
I would suggest looking at the following tutorial to get a feel of the whole thing.
http://www.ibm.com/developerworks/opensource/library/os-ecl-gmf/

writing files to be imported as EMF models into Eclipse

I'd like to generate an Eclipse EMF model in a custom tool (entirely outside of eclipse) and then save it to a format that eclipse can import and use as an EMF model. I'm looking for recommendations of what format might be a good candiate. It would be great if the format could be of a type can is stored in a text file and is (fairly) humon-readable. Also it would be good if there was, in some sense, a grammar available for the format.
Any ideas?
GenMyModel is an online modeler, released as a beta version, that corresponds perfectly to your need. You can freely test it at http://www.genmymodel.com.
GenMyModel allows you to create class models and diagrams and to export them as Ecore files (relying on XMI, a standard for exchanging metadata information, by the OMG).