-
Notifications
You must be signed in to change notification settings - Fork 0
Resources Editor
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.
When you open the Resources Editor for a concept, you will be presented a resizable dialog box like this one:
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):
Once you have added one resource with a new culture:
You can then use the Multi-Culture Rows mode with the new culture:
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):
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:
-
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).
- Introduction
- Architect Guide
- Concepts
- Using Visual Studio
- Overview
- Creating a CodeModeler Project
- Visual Environment
- Project Hierarchy
- Design Surface
- Customizing Design Surfaces
- Ribbon Bar
- Property Grid
- Member Format Expressions
- Model Grid
- Method Editor
- View Editor
- Instance Editor and Grid
- Resources Editor
- Inferred Model Viewer
- Building
- Project Physical Layout
- Source Control Support
- Generating
- Aspect Oriented Design (AOD)
- Developer Guide
- The Business Object Model (BOM)
- CodeModeler Query Language (CMQL)
- Starting Guide - Tutorial
- Upgrade From CFE