Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Merging resources that share the same root node.(Can resources be merged to not include duplicates of the parent node and keep the parent/child structure?)
Merging resources that share the same root node. [message #1802898] Mon, 18 February 2019 17:14
Tobias Fox is currently offline Tobias FoxFriend
Messages: 10
Registered: February 2019
Junior Member
Hi,

I have several chunks of a large model that share the same root node that I am loading as 2 separate resources in the same resource set.

eg.
<ecore:EPackage xmi:version="2.0" xmlns:xmi="I" xmlns:xsi="" xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="airline" nsURI="example" nsPrefix="airline">
<eClassifiers xsi:type="ecore:EClass" name="Airline">
etc.
</eClassifiers>
</ecore>

<ecore:EPackage xmi:version="2.0" xmlns:xmi="" xmlns:xsi="" xmlns:ecore="" name="airline" nsURI="example" nsPrefix="airline">
<eClassifiers xsi:type="ecore:EClass" name="Airport">
etc.
</eClassifiers>
</ecore>

Is there any way that once these resources have been loaded I can 'merge' the resources in this set to a resource that has the structure?

<ecore:EPackage xmi:version="2.0" xmlns:xmi="" xmlns:xsi="" xmlns:ecore="" name="airline" nsURI="example" nsPrefix="airline">
<eClassifiers xsi:type="ecore:EClass" name="Airline">
etc.
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Airport">
etc.
</eClassifiers>
</ecore>

Any and all help is appreciated, as I am new to both EMF and Java programming.
Thanks :)
Previous Topic:[CDO] - PostgreSQL ClassLoader issue
Next Topic:issue with EMF proxy, EOpposite, and Adapters
Goto Forum:
  


Current Time: Mon Sep 16 12:04:26 GMT 2019

Powered by FUDForum. Page generated in 0.02270 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top