Print Page | Close Window

Metamodel Object: Abstract type display name

Printed From: MetaCase
Category:
Forum Name: MetaEdit+
Forum Description: All topics relating to MetaEdit+ or DSM
URL: http://www.metacase.com/forums/forum_posts.asp?TID=873
Printed Date: 19.Apr.2024 at 00:40
Software Version: Web Wiz Forums 12.05 - http://www.webwizforums.com


Topic: Metamodel Object: Abstract type display name
Posted By: Saivignesh
Subject: Metamodel Object: Abstract type display name
Date 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?



Replies:
Posted By: stevek
Date Posted: 31.May.2017 at 11:01
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 _. 


Posted By: Saivignesh
Date Posted: 31.May.2017 at 11:39
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"


Posted By: stevek
Date Posted: 31.May.2017 at 13:16
That's what the tool already does for you, not something you need to do; "we" there refers to MetaCase.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.05 - http://www.webwizforums.com
Copyright ©2001-2022 Web Wiz Ltd. - https://www.webwiz.net