2.4.3. Handling Domains
In the Domain view, you can add all your domains and Topics. You can organize them into Domain Libraries.
![Selecting the domain tab](_images/select_domain_tab.png)
To start a new Domain Library, use the button while Domain
Libraries is selected or right-click Domain Libraries in the tree:
![Adding a domain library](_images/add_domain_library_from_tree.png)
To add a Domain Library, enter the Library Name and the destination file:
![Naming a domain library](_images/enter_domain_library_name.png)
Then you can add a domain to the new library by using the
button while a Domain Library is selected or by
right-clicking the Domain Library:
![Adding a domain to a library](_images/add_domain_from_tree.png)
A pop-up window will guide you to enter the Domain Name, the Domain ID, and the destination file:
![Naming a domain](_images/enter_domain_name.png)
Once the domain is created, you can register types with the domain and add a new Topic in the Structured view.
To register a new type, select in the
Registered types table; a pop-up will allow you to choose a
Type Name and Type Reference:
![Adding a registered name](_images/add_registered_name.png)
Note
The Type Kind is deprecated and you cannot set this value from the dialog. For legacy configurations, if the imported XML contains this attribute, it will be preserved and show in the dialog.
By default, System Designer will check if the referenced type is defined in the Types view. If you are planning to use Compiled Types, select the User compiled types checkbox and System Designer will not check if the referenced type is defined in the Types view.
![Compiled Types](_images/compiled_types.png)
After you click OK, the new registered type will appear in the left tree and in the Registered types table:
![Seeing the registered types](_images/registered_types.png)
To register a new Topic, click in the Topics table.
A pop-up will open:
![Defining a Topic](_images/topic_definition.png)
Enter your topic name and select one of the available Registered type names from the drop-down menu.
After you click OK, the new topic will appear in the left tree and in the main panel:
![Seeing the defined Topics](_images/topics.png)
Of course, you can also see the XML definition in the XML view:
![Seeing the XML for a Topic](_images/xml_tab.png)