I'm triying to create a graphical editor using eclipse gmf, based on an uml model,
for this I created a .gnemodel file based on my uml model but I do not have the associations in the generated .ecore file
I used eclipse papyrus to create the uml model and I think there is something missing so the associations can be imported to the ecore file.
Edit (Image from comment)
I found the solution, actually in this example the association owns both
of its ends so changing the owner of the end i want to use in my .ecore file into classifier in the properties view of papyrus worked.
This is a screenshot: http://imgur.com/H4UkESU
Related
I want to use Protégé as an ontology manager. The most basic feature would be to see all the ontology files I have in my repo together in a single opened instance of Protégé i.e. a unified view of all the schema I have in a specific folder. It will be like an Ontology library. Can I do this in Protégé?
I know I can merge all the files first and then see the output file in Protégé but I am looking for a better solution.
Thanks.
I have a word document (XWPFDocument). It contains some visio diagrams.
I want to update the text of these diagrams dynamically.
Can I do that using Apache POI?
Unfortunately not. According to Apache POI API docs, there is only read support for the Visio XML document:
http://poi.apache.org/apidocs/org/apache/poi/xdgf/usermodel/XmlVisioDocument.html
public class XmlVisioDocument
extends POIXMLDocument
This is your high-level starting point for working with Visio XML documents (.vsdx). Currently, only read support has been implemented, and the API is not mature and is subject to change. For more information about the visio XML format (with an XSD 1.0 schema), you can find documentation at https://msdn.microsoft.com/en-us/library/hh645006(v=office.12).aspx That document lacks in some areas, but you can find additional documentation and an updated XSD 1.1 schema at https://msdn.microsoft.com/en-us/library/office/jj684209(v=office.15).aspx Each provides different details, but the SharePoint reference has better documentation and is more useful.
Additionally, from reading the API, it doesn't look like it would be possible to access the Visio diagram embedded in the Word document.
I want to learn how to use Modelio and Overture together to learn to model programs with UML and VDM. The whole procedure about creating a UML model, exporting it to XMI (uml extension), and importing to Overture is done successfully.
However, when I try to export it back to Modelio, it brings "Failed: file content is not recognized as a valid model". Overture's tutorial tells it's possible to import/export back and forth; however, it seems the feature is broken as of now.
I may be doing something wrong. Maybe I have to set Overture in a certain way for Modelio to understand its exported XMI file. All of my online searches for a solution have been unsuccessful. How may I successfully export/import from Overture to Modelio?
I'm using Modelio 3.4.1 and Overture 2.3.0.
Thank you.
I have jdeveloper Studio Edition Version 12.1.2.0.0
I have created a pretty complex UML class diagram, and the only way (that I know of) is to export it which creates an xmi file. Is there some sort of way to create an image of it? I can't do much with the XMI file other than import it back to jdeveloper..
Thanks!
Right click the diagram and choose Publish...
I have just started to investigate Microsoft's Entity Framework (EF) with a view to replacing our existing Linq2Sql data access library.
Whilst following some of the sample projects I came across the 'Add Code Generation Item' (context menu on the designer surface), specifically the 'EF 5.x DbContext Generator' template.
This template generates some nice simple (POCO) class objects for the model.
In my overall structure, I would like to extract/move these classes into a different project/assembly so that I can reference them from a generic repository i.e. I want to decouple the application's Data Access Layer from the EF entity data model.
Is this possible, or do I need to manually create a map for each class object (e.g. .ToDomainModel(), .FromDomainModel()).
Apologies if this is a stupid question - in my defence I am new to EF and also still getting to grips with the concept of the Data Driven Domain.
It is possible but you will lose part of the auto-magic. The auto-generated item is a T4 template. If you open it you will find somewhere at the beginning relative path to .edmx file. If you move the template you just need to update the path accordingly to point to the .edmx file you want to use for generation.
The disadvantage is that moving the template elsewhere will break automatic class regeneration when the .edmx file is saved (but I didn't searched for the solution so maybe it is possible to make it work). Because of that you must manually run custom tool (item in .tt file context menu) after each saved change to EDMX file.