Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 343398 - [genModels] support for EMF GenModels
Summary: [genModels] support for EMF GenModels
Status: RESOLVED FIXED
Alias: None
Product: EMFT
Classification: Modeling
Component: MWE (show other bugs)
Version: unspecified   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 329741
  Show dependency tree
 
Reported: 2011-04-20 09:06 EDT by Moritz Eysholdt CLA
Modified: 2011-05-20 05:09 EDT (History)
1 user (show)

See Also:
sebastian.zarnekow: indigo+


Attachments
0001-Implemented-support-to-register-EMF-GenModels-v0.1 (15.22 KB, patch)
2011-04-20 09:06 EDT, Moritz Eysholdt CLA
no flags Details | Diff
Implemented-support-to-register-EMF-GenModels-v0.2 (14.21 KB, patch)
2011-04-20 10:09 EDT, Moritz Eysholdt CLA
sven.efftinge: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!