skip to main content
Maps > Developing with design tools > Using the Designer > Getting started > Saving the diagram
 
Saving the diagram
If you do not want to lose your work, you must save your newly created diagram.
To save the diagram initially:
1. Click File > Save As.
2. Enter a file name in the file chooser.
After saving the first time, if you make further changes, you can click File > Save or Ctrl+S to save again.
When you save your work, the Designer saves three files: a project file, a style sheet, and a data file.
The following example shows a project file for an XML data source.
A JViews Diagrammer project file
 
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE diagrammer>
 
<diagrammer style="genealogy.css">
  <dataource class="ilog.views.diagrammer.datasource.IlvXMLDataSource" url="genealogy.xml" />
</diagrammer>
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.
If you try to open a project file while its style sheet or data file are missing, you get an explicit error message prompting you to specify the location of the missing files. Keep in mind that the three files must be kept together.

Copyright © 2018, Rogue Wave Software, Inc. All Rights Reserved.