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

Bug 328916

Summary: Ns Uri change in Ecore is not changed in projec ...edit plugin.xml
Product: [Modeling] EMF Reporter: J.Teutsch <J_Bugzilla_Teutsch>
Component: ToolsAssignee: Dave Steinberg <davidms>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description J.Teutsch CLA 2010-10-28 07:20:41 EDT
Build Identifier: EMF Ecore Code Generator Version: 2.6.1.v20100914-1218

I changed the Ns Uri in the ecore model.

Not all resources using the Ns uri are changed.

The uri name was not changed in project plugin.xml, where the ecore.model is in.

Especially the generate edit  from .genmodel does not change the plugin xml in ...edit project

<extension point="org.eclipse.emf.edit.itemProviderAdapterFactories">
      <factory
            uri="StillOldUrl"

This has the side effect using GMF, the Properties are empty, because the AdapterFactories are not correct found

Reproducible: Always

Steps to Reproduce:
1. change in ecore Ns Uri
2. reload genmodel
3. delete generated all
4. generate all
-> plugin.xml has the old value
Comment 1 Dave Steinberg CLA 2010-10-28 12:18:27 EDT
The EMF generator cannot merge XML files. That's a well known limitation (there may be an enhancement request open), and it doesn't replace them to protect any changes you may have made manually. Just delete the plugin.xml and regenerate, and the new version will be generated.