[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mdt-papyrus.dev] Write access on applied Profile (ReadOnlyHandler mechanism)
|
Hi
At the risk of taking this discussion off topic...
The Eclipse UML2 project provides an Ecore representation of its UML
models so that UML can be used in practical EMF scenarios. This requires
that the meta-modeling (profiles) is frozen by definition of a profile
that then has an Ecore existence. Correspondingly the models must
re-apply the profile to update to the frozen Ecore version.
The above practice means that writing to profiles is absolutely
forbidden since redefinition and reapplication must be performed after
the modification.
However I see no real reason why this practice exists; indeed the OCL
support works hard to use the prevailing UML rather than the frozen
Ecore state.
The existence of this practice has been leveraged by Papyrus to support
a form of versioning.
IMHO Papyrus could be much more friendly if versioning was performed
inconjunction with a CM tool and if creation of an Ecore frozen state
was part of an code generation/Ecore export activity.
This could then allow Profile evolution as required by the original
question.
Regards
Ed Willink
On 12/05/2014 11:20, Cedric Dumoulin wrote:
Hi,
I would like to be able to modify (write) the model of a Profile
applied to a UML model.
Actually, if I try do modify the Profile, for example by adding a
new Stereotype,, I got a ReadOnly exception saying that it is forbiden
to modify an applied Profile.
How can I change this behavior and be able to modify a Profile ?
This requirement come from enhancement
432802: [Profile] Papyrus shall enhance the usability of
profile/stereotype creation and application
https://bugs.eclipse.org/bugs/show_bug.cgi?id=432802
In this enhancement, we would like to be able to create Profiles and
Stereotypes in the same time as we edit a UML model. So, we need to
write in applied Profile models.
Thanks for your help,
Cedric
_______________________________________________
mdt-papyrus.dev mailing list
mdt-papyrus.dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mdt-papyrus.dev
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2014.0.4577 / Virus Database: 3931/7478 - Release Date: 05/11/14