eclipse-emf-ecore

Converting a UML class diagram created using Papyrus into an .ecore file

蓝咒 提交于 2019-12-06 01:39:25
Here is what I do using eclipse : Create a new Papyrus project Create a class diagram in Papyrus Create a new EMF empty project Use the EMF Generator Model to convert my .uml file (created with Papyrus) into an .ecore file Now i would like to do that in Java. I found a post here where someone is doing it from XSD . I would like to do the same thing but from UML. User565300 is using something called Xsd2Ecore but I couldn't find a Uml2Ecore. Do you guys know what eclipse is using to convert UML file ? I happened to bump into this problem very recently and found an easy solution so thought I

How to merge EMF models programmatically in Java?

若如初见. 提交于 2019-12-05 07:01:08
Is there a way to combine multiple Ecore models (2 or more) in a single Ecore model programmatically in Java? With all models conform to the same metamodel. In: Model1 conforming to metamodelX Model2 conforming to metamodelX model3 conforming to metamodelX model4 conforming to metamodelX model5 conforming to metamodelX Out: modelOut conforming to metamodelX and merge of Model1, Model2, model3, model4, model5 ... There is Eclipse project for handling EMF comparing and Merging, called EMF Compare. Here is example provided by them: // Loading models EObject model1 = ModelUtils.load(model1,

reading the eobjects from the ecore file in eclipse

拟墨画扇 提交于 2019-12-02 22:52:54
问题 I have the ecore file which contains the class eobjects.Now i want to read that ecore file and get all the class eobjects from that ecore file. 回答1: Do you mean you want to reload your specific xmi file with a custom suffix? Here is an example of a method that loads an ecore file at a specific location (path) and returns your root EObject public static EObject loadYourModel(String path) { /*Initialzie Models*/ YourPackage.eINSTANCE.eClass(); /*register your xmi resources*/ final Resource

ATL transformation rules not matching nested BPMN2 elements

我怕爱的太早我们不能终老 提交于 2019-12-01 14:20:09
I am writing an ATL translation from BPMN2 to another model. The problem is that the code does not detect any nested element. I have posted the atl code and my input here at: https://github.com/behnaaz/BPMN2ATL.git You can see from the output that the only executed rule is def2mod which has created a Reo module element in the output. If I remove the first level element in the input bpmn file then the rule mapProcess is kicked in. Also in the logs the command BPMN20!Process.allInstances() which should give a list of all the Processes only works in the mapProcess rule. I think there is some

How do I install an Eclipse EPP (for example EPP Modeling Feature on 3.8)?

倖福魔咒の 提交于 2019-11-30 16:51:37
How do I install an Eclipse EPP through the software installer for 3.8? I would like to choose the "EPP Modeling Feature" and install all of its packages rather than selecting them all individually. As an example if I install Eclipse Juno "Eclipse Modeling Tools" and then look at the installed software packages I will see "EPP Modeling Feature 1.5.0.20120620-0855 org.eclipse.epp.package.modeling.feature.group. If I then also install the base Eclipse 3.8 and choose "install new software" and turn off "group by category" I can find the EPPs. I can't install them however since they are written to

How to convert XSD to Ecore (EMF)

穿精又带淫゛_ 提交于 2019-11-30 13:50:03
What is the best way to convert .xsd -files into .ecore -files? Is there an Eclipse plugin for that? That's what worked for me: New -> Project... Eclipse Modeling Framework -> EMF Project Model Importers: XML Schema Model URIs : [Select xsd-File] To revalidate the .ecore-File when xsd has changed: Right-Click on .genmodel -File Reload... If you do not want to create a new MDT project every time you want to import a schema as ECore model then there is also another way to do this: New -> EMF Generator Model (in "Eclipse Modelling Framework") Press Next Select folder and specify filename (has to

How do I install an Eclipse EPP (for example EPP Modeling Feature on 3.8)?

这一生的挚爱 提交于 2019-11-30 00:08:19
问题 How do I install an Eclipse EPP through the software installer for 3.8? I would like to choose the "EPP Modeling Feature" and install all of its packages rather than selecting them all individually. As an example if I install Eclipse Juno "Eclipse Modeling Tools" and then look at the installed software packages I will see "EPP Modeling Feature 1.5.0.20120620-0855 org.eclipse.epp.package.modeling.feature.group. If I then also install the base Eclipse 3.8 and choose "install new software" and

Where can I find a valid SVG XML Schema (for ecore generation)?

北城以北 提交于 2019-11-29 10:25:39
I tried importing the SVG XML Schema into EMF, to obtain the SVG metamodel in ecore. However, the import failed due to the schema not being valid: indeed, svg.xsd references XMLSchema.dtd , which itself references datatypes.dtd , which does not exist! Consequently, I tried downloading the necessary files from the svg website (svg.xsd, XMLSchema.dtd, xlink.xsd , xml.xsd ), and the missing datatypes.dtd, from another location . However, I keep getting many errors when validating the schema, e.g. Error: XSD: An attribute reference may not have a type Error: XSD: An <all> content model may not be