Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Dynamic UML Profiles and EPackage.Registry Issue
Dynamic UML Profiles and EPackage.Registry Issue [message #1034486] Fri, 05 April 2013 09:40 Go to next message
Ronan B is currently offline Ronan B
Messages: 229
Registered: July 2009
Senior Member
Hi,
I'm having problems with UML Profiles that are defined dynamically. The issue is exposed when I run an ATL transform (#1) then an Acceleo transform (#2) and then an the same ATL transform (#3) again. #1 and #2 run fine but not #3 because the EPackage.Registry has been modified during the load in transform #2. I issued a bug against Acceleo https://bugs.eclipse.org/bugs/show_bug.cgi?id=389497 (the full details are there) but it seems to be a more general UML2 Profile problem rather than Acceleo.

The issue does not arrise when UML2 Profiles are statically defined in a plugin i.e. genmodel and associated code is generated. The issue is that the URI, such as "http:///schemas/ecore/0", of the dynamically defined profile (also located in a plugin) is incorrectly stored by ecore during the load in #2 which causes ATL in #3 to flip out as it cannot resolve properly the URI in the EPackage.Registry.

Note my dynamic profile has extensions for both org.eclipse.emf.ecore.uri_mapping and org.eclipse.uml2.uml.dynamic_package as expected.

Any insights are appreciated!

Regards,
Ronan
Re: Dynamic UML Profiles and EPackage.Registry Issue [message #1034508 is a reply to message #1034486] Fri, 05 April 2013 10:14 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 3838
Registered: July 2009
Senior Member
Hi

IMHO, Any code (other than extension point registration) that modifies
global EMF registries within an Eclipse environment requires careful
review to demonstrate that it has no impact on other applications. If
not, it looks like a major bug.

Regards

Ed Willink

On 05/04/2013 14:40, Ronan B wrote:
> Hi,
> I'm having problems with UML Profiles that are defined dynamically.
> The issue is exposed when I run an ATL transform (#1) then an Acceleo
> transform (#2) and then an the same ATL transform (#3) again. #1 and
> #2 run fine but not #3 because the EPackage.Registry has been modified
> during the load in transform #2. I issued a bug against Acceleo
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=389497 (the full details
> are there) but it seems to be a more general UML2 Profile problem
> rather than Acceleo.
>
> The issue does not arrise when UML2 Profiles are statically defined in
> a plugin i.e. genmodel and associated code is generated. The issue is
> that the URI, such as "http:///schemas/ecore/0", of the dynamically
> defined profile (also located in a plugin) is incorrectly stored by
> ecore during the load in #2 which causes ATL in #3 to flip out as it
> cannot resolve properly the URI in the EPackage.Registry.
>
> Note my dynamic profile has extensions for both
> org.eclipse.emf.ecore.uri_mapping and
> org.eclipse.uml2.uml.dynamic_package as expected.
>
> Any insights are appreciated!
>
> Regards,
> Ronan
Previous Topic:UMLModeler class and shared elements
Next Topic:Re: Specifying derived values in a UML model
Goto Forum:
  


Current Time: Wed Apr 16 00:50:41 EDT 2014

Powered by FUDForum. Page generated in 0.15745 seconds