Commit 6ba52f2a authored by legoc's avatar legoc
Browse files

Save the viewer file

parent efd10ed0
......@@ -13,6 +13,7 @@ import java.util.logging.Logger;
import org.apache.commons.io.FilenameUtils;
import fr.ill.ics.n3d.Nomad3DEditor;
import fr.ill.ics.n3d.io.Nomad3DExporter;
import fr.ill.ics.n3d.io.Nomad3DImporter;
import fr.ill.ics.n3d.link.Nomad3DController;
import fr.ill.ics.n3d.link.NomadLinker;
......@@ -54,10 +55,8 @@ import javafx.scene.control.Label;
import javafx.scene.control.Menu;
import javafx.scene.control.MenuBar;
import javafx.scene.control.MenuItem;
import javafx.scene.control.RadioButton;
import javafx.scene.control.SeparatorMenuItem;
import javafx.scene.control.TextField;
import javafx.scene.control.ToggleGroup;
import javafx.scene.control.TreeView;
import javafx.scene.image.ImageView;
import javafx.scene.input.KeyCode;
......@@ -191,6 +190,10 @@ public class EditorMenuBar extends MenuBar {
OperationsSerializer serializer = new OperationsSerializer();
serializer.write(Nomad3DEditor.getInstance().getModel());
// Save the viewer file.
Nomad3DExporter exporter = new Nomad3DExporter();
exporter.writeForViewer(Nomad3DEditor.getInstance().getModel());
// Change the title.
updateModified(false);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment