Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Reloading one resource removes stereotypes from another
Reloading one resource removes stereotypes from another [message #614501] Tue, 08 May 2007 06:45
Billy Dennigan is currently offline Billy DenniganFriend
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.
Previous Topic:Cloning an Interaction
Next Topic:Activity Diagram Examples
Goto Forum:
  


Current Time: Tue Apr 16 07:27:31 GMT 2024

Powered by FUDForum. Page generated in 0.09046 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top