Skip to content

Ribbon Bar

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

The ribbon bar atop the design surface is contextual (changes with current selection) and allows you to quickly access the most used commands for the current selection. Let’s detail the commands for each bar:

Project Commands Bar

Project Commands Bar - Picture 56

It’s the default bar, selected when no other bar is selected. Beyond the “Add” actions, other notable actions are:

  • Model Grid and Namespace Model Grid allows you to show the Model Grid on the whole model or already filtered on the current namespace.

  • View Inferred Model is explained the Inferred Model View chapter.

  • Build is the same as Visual Studio standard Build command. It will instruct the CodeModeler Meta Compiler to Build the project and generate outputs, if any.

  • Project Resources allows you to edit resources global to the project using the Resources Editor.

Entity Commands Bar

Entity Commands Bar - Picture 62

It’s selected when an entity is selected. You can select and entity if you click on its shape (outside one of its contained concepts: property, method, etc.). Beyond the “Add” actions, other notable actions are:

  • Model Grid and Namespace Model Grid allows you to show the Model Grid on the whole model or already filtered on the current namespace.

  • Instances Grid is explained the Instances Editor chapter.

  • Entity Resources allows you to edit the selected entity resources using the Resources Editor.

Property Commands Bar

Property Commands Bar - Picture 61

It’s selected when an entity’s property is selected. You can select a property if you click on it in an entity shape. Beyond the “Add” actions, other notable actions are:

  • Delete Relation is only enabled if the property has a relation with another property (1:1, 1:N, etc.). When selected, the following dialog box is shown that allows you to explain how exactly you want to delete it: Property Commands Bar - Picture 63

  • Property Resources allows you to edit the selected property resources using the Resources Editor.

Method Commands Bar

Method Commands Bar - Picture 60

It’s selected when an entity’s method is selected. You can select a method if you click on it in an entity shape. Beyond the “Add” actions, other notable actions are:

  • Edit Method is explained the Method Editor chapter.

  • Method Resources allows you to edit the selected method resources using the Resources Editor.

Enumeration Commands Bar

Method Commands Bar - Picture 59

It’s selected when an enumeration is selected. You can select and enumeration if you click on its shape (outside one of its contained concepts: value, resource, etc.). Beyond the “Add” actions, other notable actions are:

  • Model Grid and Namespace Model Grid allows you to show the Model Grid on the whole model or already filtered on the current namespace.

  • Enumeration Resources allows you to edit the selected enumeration resources using the Resources Editor.

Enumeration Value Commands Bar

Enumeration Value Commands Bar - Picture 58

It’s selected when an enumeration’s value is selected. You can select a value if you click on it in an enumeration shape. Beyond the “Add” actions, the other notable action is:

  • Value Resources allows you to edit the selected enumeration value resources using the Resources Editor.

Modeler Pad Commands Bar

Modeler Pad Commands Bar - Picture 57

It’s never automatically selected. It contains miscellaneous commands:

  • Cut, Copy, Paste, Delete, etc. These are standard edition commands. Check the Design Surface chapter for more on the Copy-Paste support applied to concepts.

  • Shape Search allows you to quickly find a shape on the surface, using it’s defining concept name. It works as soon as you type something, and the surface jumps from shape to shape when you select concepts.

  • Model Search uses a CodeModeler integrated full-text search engine to find any concept using any textual information it’s composed of: Modeler Pad Commands Bar - Picture 54

  • Entity Format and Property Format are detailed in the Member Format Expression chapter.

  • Add Note allows you to add a yellow sticky note anywhere on the surface.

Visual Studio Keyboard Shortcuts

Most CodeModeler commands can be associated with Visual Studio keyboard shortcuts. To create a shortcut, open Tools / Options, select Environment / Keyboard and type something (without spaces) corresponding to the CodeModeler command. Once it’s found, you can create a shortcut. For example, in this image we can associate keys with the “View Inferred Model” CodeModeler command:

Visual Studio Keyboard Shortcuts - Picture 38

Clone this wiki locally