Using the Designer > Getting Started > Saving the Diagram

To save the diagram initially, choose File>Save As and enter a file name in the file chooser. When you save your work, the Designer saves three files: a project file, a style sheet, and a data file.

Code Sample 1.1 shows an example of a project file for an XML data source.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE diagrammer>

<diagrammer style="genealogy.css">
  <datasource class="ilog.views.diagrammer.datasource.IlvXMLDataSource" 
url="genealogy.xml" />
</diagrammer>

Code Sample 1.1 An ILOG JViews Diagrammer Project File

The project file specifies the name of the style sheet file, the type and parameters of the data source, and the name of the data file. You can see that this project file is for the genealogy example.

Please note that, if you try to open a project file while its style sheet and/or data file are missing, you will get an explicit error message prompting you to specify the location of the missing files. Keep in mind that the three files must live together.

After saving the first time and if you have made further changes, you can just choose File>Save or click Ctrl-S to save again.