Skip to main content

Courier Editor

Overview

This page describes how to use CourierEditor.
CourierEditor is an editor for editing XML files required for Courier. This page mainly explains how to create a data binding source. A data binding source can have multiple data binding items. The created data binding source is saved as an .xcdl file. Additionally, Scene Composer allows you to bind arbitrary properties and data binding items.

Please refer to data binding basics here.
Please refer to data binding with Scene Composer here.
For details about the data binding items that you set in the data binding source, please refer to the Xml Courier Definition Language (XCDL) schema documentation. (On the menu bar, click [Help > View Schema Help])


Starting Courier Editor

From the Scene Composer menu bar, select [ File > Define application specifications], open the "Courier Editor Parameters" dialog, and select [ Edit... ] to launch CourierEditor.

drawing-7-1717648140.png
drawing-7-1717648178.png

Courier Editor main window


CourierEditor user interface

Menu bar

Please see the table below for details on CourierEditor menu bar.

Menu name
Description
File
New Create a new data binding source.
Open Open an existing data binding source.
Close Closes the currently open data binding source.
Save

Overwrites the currently open data binding source.

Save As

Save the currently open data binding source as.

Edit
Undo Undo the previous operation.
Redo Redo the previous operation.
Validate Validate the currently open data binding source.
Add Include Add another data binding source to "include".
Add Message Add a message item to "messages".
Add Message Group Add a group item to "messages".
Add Compound Add the compound item to "types".
Add Binding Source Add a bindingSource item to "bindingSources".
Help View Schema Help Open an "Xml Courier Definition Language (XCDL) schema documentation".
UI item

Details of the UI items on CourierEditor main window. The numbers in the diagram match the numbers in the explanations for each item below.

drawing-7-1720425384.png
UI item
Description
1. Data binding source path information
Include Path Set the save destination of the referenced Data binding source.
File path Set the save destination of the Data binding source.
2. Data binding item editing area

The top row of tabs is for selecting the data binding source. (When setting Include path)

Raw XML tab

Information on all items included in the Data binding source is displayed.
You can add/edit/delete items.

Types tab Only items included in "types" in Raw XML are displayed in list format.
You can add/edit/delete items.
Binding Sources tab Only items included in "bindingSources" in Raw XML are displayed in list format.
You can add/edit/delete items.
3. Verification result view
The data binding source validation results are displayed.

Create new definition

Create a Data binding source from [ File > New ] on the CourierEditor menu bar.

drawing-7-1717648401.png

In the "New File" dialog, set the destination and name for the new data binding source, then click [ Save ].

drawing-7-1717653084.png

Open existing definition

Open an existing Data binding source from [ File > Open ] in CourierEditor menu bar.

In the Open dialog, select an existing data binding source, then click [ Open ]..

drawing-7-1717653208.png

In addition to the steps above, you can also open an existing data binding source from the CourierEditor main window. Click the [...] button at the right end of File Path to set the path required to open an existing data binding source. The [Open] button will appear at the right end of File Path, so click it.

drawing-7-1720425533.png

Setting the Include Path

You can set an Include Path for a Data binding source. Include path allows you to pre-include the contents of a specific Data binding source in the Data binding source you are editing by setting the path of the specific Data binding source. For example, by setting a Data binding source that is used for general purposes to a Include Path, there are advantages such as eliminating the need to create a similar Data binding source for each solution.

How to set Include Path

To set the Include Path, click the [ ... ] button at the right end of the Include Path in the CourierEditor dialog to open the "Include path" dialog.

drawing-7-1720425694.png

The details of the Include path dialog are as follows. Use [ Add path ] to set the destination for any Data binding source.

drawing-7-1720425793.png
UI item Description
Add path Sets the path for a specific Data binding source.
Remove path Removes the path selected in the Include path dialog.
Move up Moves the display order of the paths selected in the Include path dialog in ascending order.
Move down Moves the display order of paths set in the Include path dialog in descending order.
OK Finish setting Include path and proceed to the next step.

After setting the Include Path in the Include path dialog, perform the following operations in the editing area of the Data binding item.

  1. Add an include element by selecting [ Add new include ] from the context menu of include in the Raw XML tab.

    drawing-7-1716523486.png


  2. Enter the file name of specific Data binding source in [ href ] of the added include element.
    drawing-7-1716523515.png

  3. From the context menu of the added include element, choose [ Edit (filename of specific Data binding source) ].
    drawing-7-1716523543.png

  4. The "(specific Data binding source name).xcdl" tab is displayed at the top of the Data binding item editing area.
    drawing-7-1717657104.png

By performing the above operations, specific Data binding source can be included in the Data binding source being edited.


Edit definition

Adding new item

Add a new item by selecting [ Add new (addable item name) ] from each item context menu.

drawing-7-1717648728.png
Deleting the item

Select [ Delete (item name you want to delete) ] from the context menu of the item you want to delete.

drawing-7-1717648759.png
Types / Binding Sources tabs

The Types and Binding Sources tabs are duplicates of the Raw XML tab's types and bindingSources. By using the Types tab and Binding Sources tab, you can edit the types and bindingSources items in the Raw XML tab, and display them in a list. Edits in the Raw XML tab and the Types/Binding Sources tab are synchronized with each other.

drawing-7-1716526149.png

Raw XML tab and Type tab

drawing-7-1716526190.png

Raw XML tab and Binding Sources tab

Defining the data type of a data binding item

In the Binding Sources tab, you can define the data type of a data binding item. You can select a pre-defined data type from the item > type pull-down menu.

drawing-7-1717746646.png

You can define a custom data type by selecting <Add Type> from the type pull-down menu. When you select <Add Type>, the "Type" dialog opens, so click the [ + ] icon in the upper left. A new data type will be added, so enter the data type information and click [ OK ].

drawing-7-1717746676.png

The added custom data type will be selectable from the pull-down menu of type.

drawing-7-1717746708.png

To make the information easier to understand, the Types and Binding Sources tabs display only the important properties of the Raw XML tab.

Specify optional artifacts like the message distribution
  • Check the checkbox to the left of each artifact to set the value.
  • Note:
    • If not specified the inherited distribution is used
    • The broadcast value is edited by the checkbox on the right side
    • Uid will be automatically created by the editor
drawing-7-1714457821.png
Choose references from the dropdown list e. g.
  • The data binding source contains a message called "Test".
  • In that case, a validation error will occur if the pool's messageRef is not set.
  • From the pool's messageRef pull-down menu, select the message "Test".
  • messageRef will be set to the uid of the message "Test".
drawing-7-1717649468.png

Validation

Validation can be performed in two ways.

  • Execute [ Edit > Validate ] from the menu bar.
  • Using the shortcut "Alt+V"

Validation output is shown on the lower part.

drawing-7-1717648860.png