Skip to content

Resources Editor

Simon Mourier edited this page Feb 19, 2020 · 1 revision

The Resources Editor is accessible using the entity Ribbon Bar. Resources (also called Messages) are static values (usually text) that have a defined class that categorizes them (documentation, localization, etc.). The Resources Editor is accessible in two flavors:

  • Concept Resources Editor: available for most concepts, except the project concept. Accessible using the Ribbon Bar for entity, property, method, enumeration, and enumerationValue concepts.

  • Project Resources Editor: in this case, the editor has an extra “Name” column.

Concepts Resources Editor

When you open the Resources Editor for a concept, you will be presented a resizable dialog box like this one:

Concepts Resources Editor - Picture 89

There are two modes to use the Resource Editor:

  • Multi-Culture Rows. It presents one column per culture in the project. A culture cannot be added in this mode, you must switch to the other mode first to add a new culture that’s not displayed in this mode and switch back after having added this new culture.

  • One Row Per Resources. It presents one column per culture in the project.

With the One Row Per Resources mode, you can use any culture (available in the current Windows installation where the code is running from):

Concepts Resources Editor - Picture 91

Once you have added one resource with a new culture:

Concepts Resources Editor - Picture 92

You can then use the Multi-Culture Rows mode with the new culture:

Concepts Resources Editor - Picture 93

Project Resources Editor

When you open the Resources Editor on the project, the dialog has an extra Name column because messages here can be global (with a defined and unique name) or local (in this case, they would be attached to the project itself as a concept):

Project Resources Editor - Picture 94

Advanced Columns

The “Show Advanced Columns” is only available in the “One Row Per Resource” mode. If you check it, the dialog box will display 4 more columns:

Advanced Columns - Picture 96

  • Type Name corresponds to the resource type. A resource value (“Value” column) is by default a text, but it can represent anything else. This column helps characterize the resource for producers who can take advantage of it.

  • Preserve Escaping indicates if the text (“Value” column) represent an escaped or unescaped value. This column helps characterize the resource for producers who can take advantage of it.

  • Add To Resource Manager means the resource will be added to the generated resource manager class (Business Object Model producer).

  • Add To Runtime Resource File means the resource will be added to a .resources or .resx file (Business Object Model producer).

Clone this wiki locally