Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Profile reapplication
Profile reapplication [message #581835] Fri, 02 February 2007 16:55
Chokri Mraidha is currently offline Chokri MraidhaFriend
Messages: 28
Registered: July 2009
Junior Member

The specification of Package#applyProfile() is:

Applies the current definition of the specified profile to this package
and automatically applies required stereotypes in the profile to elements
within this package's namespace hieararchy. If a different definition is
already applied, automatically migrates any associated stereotype values
on a "best effort" basis (matching classifiers and structural features by

According to this specification when I reapply a profile to a model M the
stereotypeApplications of M are migrated to the new profile application
(new definition).

But when I call applyProfile with a profile already applied this migration
is not performed and I have two stereotypes available (one for the old
profile and one for the new one).

The result is something like this in the uml file:

<Test:Stereotype_0 xmi:id="_WATyMLLcEduZAKbcGyKgJg"
<Property_0>hello world</Property_0>
<Test_1:Stereotype_0 xmi:id="_sz--ULLcEduZAKbcGyKgJg"
<Property_0>new hello world</Property_0>

I am using uml2 2.0.3. Do I have to do something else than calling
Package#applyProfile() to make the migration occur?


Previous Topic:Do the UML Tools export to Java or C source?
Next Topic:private package imports
Goto Forum:

Current Time: Sat Apr 04 03:34:54 GMT 2020

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

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

Back to the top