archimatetool / archi

Archi: ArchiMate Modelling Tool
https://www.archimatetool.com
MIT License
944 stars 269 forks source link

[Feature request] Please consider using seperate strings for Palette Tooltips #791

Closed rojoweko closed 2 years ago

rojoweko commented 2 years ago

Hi, I would like to provide additional Information about element and relationship types in the respective tooltips in the palette (like for instance the original English name of the palette object in braces next to the German term and maybe some additional short description of the concept), without having it as a part of the actual concept type name for the created concept instances. But this requires a seperate set of strings for the tooltips. If this makes sense to you, please concider to seperate the string sets for the name of the concept type and the tooltip.

Thanks in advance! ;-)

Phillipus commented 2 years ago

Sorry, but that's not so straightforward.

Each palette entry name is derived from its concept class in a function like this:

ArchiLabelProvider.INSTANCE.getDefaultName(eClass)

And that name is taken from the com\archimatetool\editor\ui\factory\elements\messages.properties file.

A different tooltip would have to use a different set of strings and a similar method to derive the tooltip string from the class, and it then becomes too complicated just for one use case.