Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 343398

Summary: [genModels] support for EMF GenModels
Product: [Modeling] EMFT Reporter: Moritz Eysholdt <moritz.eysholdt>
Component: MWEAssignee: Project Inbox <emft-mwe-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: sebastian.zarnekow
Version: unspecifiedFlags: sebastian.zarnekow: indigo+
Target Milestone: M7   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Bug Depends on:    
Bug Blocks: 329741    
Attachments:
Description Flags
0001-Implemented-support-to-register-EMF-GenModels-v0.1
none
Implemented-support-to-register-EMF-GenModels-v0.2 sven.efftinge: iplog+

Description Moritz Eysholdt CLA 2011-04-20 09:06:56 EDT
Created attachment 193693 [details]
0001-Implemented-support-to-register-EMF-GenModels-v0.1

I've implemented support for EMF GenModels:

- added org.eclipse.emf.mwe.utils.StandaloneSetup.addRegisterGenModelFile(String):
  this registers genmodels in EcorePlugin.getEPackageNsURIToGenModelLocationMap()

- org.eclipse.emf.mwe2.ecore.EcoreGenerator does now register its GenModels.

- added an optional dependency from org.eclipse.emf.mwe.utils to org.eclipse.emf.codegen.ecore

- added a dependency from org.eclipse.emf.mwe2.lib to org.eclipse.emf.mwe.utils

these changes originate in bug 329741.
Comment 1 Moritz Eysholdt CLA 2011-04-20 10:09:58 EDT
Created attachment 193701 [details]
Implemented-support-to-register-EMF-GenModels-v0.2

implemented the changes we just discussed offline:
- reflection in StandaloneSetup is not needed, since a NoClassDefFoundException is only thrown if the needed class is involved in the code that is actually executed. 
- log a warning, if a another GenModel has already been registered for a NamespaceURI.
Comment 2 Sebastian Zarnekow CLA 2011-04-20 10:40:06 EDT
pushed to master.
Comment 3 Moritz Eysholdt CLA 2011-04-20 10:41:41 EDT
thx!