![]() |
MetaEdit+ and UUID |
Post Reply
|
| Author | |
janne
MetaCase
Joined: 25.Mar.2008 Points: 58 |
Post Options
Thanks(0)
Quote Reply
Topic: MetaEdit+ and UUIDPosted: 24.Oct.2014 at 13:14 |
|
An earlier topic (714) discussed how to make UUIDs in MetaEdit+ with generators.
MetaEdit+ 5.1 adds a new way to handle UUIDs: rather than generating them you can define them directly in your metamodel, and in this way make them part of your language definition. This is done by creating a string property type with widget UUID Base64. Such a UUID
property can be added to any language element. For example, if such a property
is added to the 'Entity' object type as shown below then all entities will get a unique UUID
– including already existing entity instances. By prefixing the local name in
Object Tool with '_', the property becomes read-only as shown below in the picture, ensuring the value remains permanent. If you
only need the UUID for generator purposes and would like to hide if from
modelers, you can use a double underscore prefix ('__Unique ID'). These hidden properties do not appear in the property dialog or property sheet, but can be read in generators and via the API, and are included in exports.
Edited by stevek - 24.Oct.2014 at 13:53 |
|
![]() |
|
Post Reply
|
|
| Tweet |
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |