Reloading one resource removes stereotypes from another [message #614501] |
Tue, 08 May 2007 06:45 |
Billy Dennigan Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Hi,
We're having probems with models which are stored across two or more fil=
es.
For example: we have a pair of nested packages (packagedElement) =
'ParentPackage' and 'ChildPackage' whereby
'ParentPackage' contains 'ChildPackage', 'ParentPackage' is stored i=
n =
ParentFile.mdl, and 'ChildPackage' is stored in ChildFile.mdl
Both of these packagedElements have a stereotype from our profile applie=
d.
So in ParentFile.mdl we see something like:
<packagedElement xmi:type=3D"uml:Package" =
href=3D"ChildFile.mdl#_7hFkcPFwEduBy7DMwGCuwQ"/>
The model can be very large so we want to be able to reload parts of it =
=
from disk without reloading the whole thing.
The obvious way to do this is to unload and reload individual resources =
=
whenever they change on disk.
However the problem is that whenever I unload and reload the Resource fo=
r =
ParentPackage.mdl, the stereotypes for everything in ChildPackage.mdl (o=
r =
any other 'nested' files) get unapplied. i.e. calling =
'getAppliedStereotypes' on anything from this resource returns an empty =
=
array.
The only way around this so far is to also reload the resource for =
ChildPackage.mdl. But this has a cascading effect because once you reloa=
d =
a 'child' resource, you lose the stereotypes of its 'child' resources an=
d =
must reload them, and so on.
Does our approach sound correct, or are we missing something here? Any =
help would be much appreciated.
Thanks in advance.
Billy Dennigan.
|
|
|
Powered by
FUDForum. Page generated in 0.03397 seconds