Metamodel Object: Abstract type display name |
Post Reply |
Author | |
Saivignesh
Contributor Joined: 01.May.2017 Location: Netherlands Points: 17 |
Post Options
Thanks(0)
Posted: 31.May.2017 at 09:43 |
I have a question regarding objects. I have a super type called _abc. When I add the _abc in my new graph. Is it possible to change the display name I get in my new graph? Like abc instead of _abc?
|
|
stevek
MetaCase Joined: 11.Mar.2008 Points: 641 |
Post Options
Thanks(0)
|
Object types have an internal name (which can be seen in XML export files), and the name you enter for the type in the Object Tool is thus already the user-visible name - so no, there isn't a third name you could enter somewhere. Of course you can change the icon and symbol to show what you like, and they are the things the users mostly look at, rather than the name.
As you know, the _ at the start means the type is abstract, i.e. cannot itself be instantiated. We want to show the user that the type is abstract, so simply hiding the _ isn't ideal. In some places in the UI, we can simply show the concrete subtypes and not show the abstract supertype at all (e.g. in the dialog the user will see when creating an instance). In other places, where we have to show the abstract type, we can make it more obvious to the user by showing it in italic or grayed out, and in those cases we do indeed drop the _. In some places the OS / UI doesn't offer graying or italics, e.g. in menus, tooltips, or window title bars, and so there we have to show the full name with the _.
|
|
Saivignesh
Contributor Joined: 01.May.2017 Location: Netherlands Points: 17 |
Post Options
Thanks(0)
|
How do I do this "we can make it more obvious to the user by showing it in italic or grayed out, and in those cases we do indeed drop the _. In some places the OS / UI doesn't offer graying or italics, e.g. in menus, tooltips, or window title bars"
|
|
stevek
MetaCase Joined: 11.Mar.2008 Points: 641 |
Post Options
Thanks(0)
|
That's what the tool already does for you, not something you need to do; "we" there refers to MetaCase.
|
|
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 |