Sparx Systems Forum
Enterprise Architect => Bugs and Issues => Topic started by: DanG83616 on June 19, 2013, 07:33:25 am
-
Hi,
My model transforms dialog is stuck on an obsolete Target Package and won't forget it. For some time, I was able to delete the target package and the Transformations portion of the dialog would require that I re-select. At some point, the dialog started remembering the target even after I had deleted it. That is, no package by that name in the model but the Model Transforms dialog would still come up with the name. Even when I set a different, and existing, target package the dialog still comes up with the old one. This only happens for one of the transforms I apply to the source model. The other transform still requires a re-select when I delete the target package.
The binding appears to be associated with the classes in the source model. If I create a new package and drag any classes from the old one to the new, the dialog comes up with the transform selected and the target set.
I have changed my transformation chain such that the troublesome transform is not even appropriate for the source model. It is very annoying and confusing to have to un-tic the transform each time I want to apply the other, appropriate transform.
Any ideas?
Thanks,
Dan
-
Sounds to me like you have something left over for that transformation.
-
Thank you, Simon. That was it. I had created a class by transform and then subsequently manually moved that class to another package. Since the class was no longer in the original target package, removing the package was not enough.
Thanks,
Dan
-
Here is a helpful Model Search to find elements produced by a particular transform (with thanks to Aaron at Sparx):
select t_object.ea_guid AS CLASSGUID, t_object.Object_Type AS CLASSTYPE, t_object.Name from t_object, t_xref where t_xref.Client = t_object.ea_guid and t_xref.Type = 'Transformation'
and t_xref.Namespace = '<your transform name here>'
Cheers,
Dan
-
I'm having the same issue
I need to transform my analysis class model to a new package.
I changed the target package to a new one ; once the transformation has completed, I only get empty packages.
If I run it with a different language such as C#, it generates the classes.
How can I keep the Java classes generated from a previous transformation, whilst generating Java classes in a new package?
thanks