Chromattic Data Object files has MIME type application/x-chromattic+groovy. With eXo IDE you can create Chromattic Data Object file, create and preview node type.
To create new data object click the New > Data Object Toolbar button; or go to File > New > Data Object on the top menu. New file will be opened in editor, so you will be able to edit and save it.
To generate the node type definition and preview it, do the follows:
Step 1. Click Preview node type button on Toolbar or go to Run > Preview node type from the top menu.
Step 2. Select format of node type in the appeared dialog window:
EXO standard XML content type to be used with XML-formatted node type streams;
CND experimental content type for the compact node type definition files.
Step 3. Click Generate button. The generated node type definition will be displayed in the separate tab of Operation Panel with title Preview node type:
Illustration. Preview node type definition
To create new node type, do as follows:
Step 1. Click Deploy node type button on Toolbar or go to Run > Deploy node type on the top menu.
Step 2. Select required format of node type in the appeared dialog window.
Step 3. Choose the action in case if such node type already exists:
- ignore if exists if the pointed node type already exists, then ignore the creation operation. - fail if exists if the pointed node type already exists, then fail. - replace if exists if the pointed node type already exists, then replace it with new one.
Step 4. Click Deploy button.
Illustration. Deploy the node type definition
If node type has been deployed successfully, you will see the message Node type is successfully deployed. Otherwise the error message will be shown.
At present, CND format is not supported for the deploy operation.