ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

Reduce logged error messages for missing genmodels #300

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Currently there is a workspace listener registers who tries to register all 
found ecore files inside the package registry so they are available for 
referencing their elements inside the Spray DSL. But for some ecore files on 
the classpath there is no genmodel provided (or its placed somewhere else). For 
these cases always error messages are logged like:

org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.ocl/model/OCLCST.genmodel, 12, 92)
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.ocl/model/OCL.genmodel, 12, 75)
java.io.FileNotFoundException: /model/extended.genmodel
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.ocl/model/OCL.genmodel, 12, 75)
java.io.FileNotFoundException: /model/Xpect.genmodel
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel, 13, 59)
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.uml2.types/model/Types.genmodel, 8, 32)
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.ocl.uml/model/OCLUML.genmodel, 11, 57)
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel, 13, 59)
org.eclipse.emf.ecore.xmi.PackageNotFoundException: Package with uri 
'http://www.eclipse.org/uml2/2.2.0/GenModel' not found. 
(platform:/plugin/org.eclipse.uml2.uml/model/UML.genmodel, 13, 59)
java.io.FileNotFoundException: /model/extended.genmodel
259440 [Worker-3] ERROR org.eclipselabs.spray.xtext.scoping.PackageSelector  - 
No genmodel found for package URI 
http://www.eclipse.org/emf/eef/mapping/filters/1.0.0. If you are running in 
stanalone mode make sure register the genmodel file.

The listener should be made that intelligent to only try to register those 
ecore files that are contained in plug-in project that is made a dependency of 
the Spray project. All other files should be ignored. 

Original issue reported on code.google.com by de.abg.r...@gmail.com on 1 Sep 2013 at 9:04

GoogleCodeExporter commented 8 years ago
More examples attached

Original comment by mrbc...@mac.com on 16 Oct 2013 at 2:17

Attachments: