Xcos MVC: implement XCOS / ZCOS file saving 03/17403/11
authorClément DAVID <clement.david@scilab-enterprises.com>
Fri, 23 Oct 2015 11:58:11 +0000 (13:58 +0200)
committerAntoine ELIAS <antoine.elias@scilab-enterprises.com>
Fri, 6 Nov 2015 16:45:54 +0000 (17:45 +0100)
commit4606a8ac820694eacd5796b1ae68e35d3115516c
treec8e0deb2324dcdd741eec42b46dc438f5c0a7eb4
parent8bd350c3ba2ed224abc670197367fb1f92821133
Xcos MVC: implement XCOS / ZCOS file saving

 * Add a DESCRIPTION property for blocks' value
 * Handle both binary and textual saving
 * testing is performed manually using xcosDiagramToScilab calls

Change-Id: If60686a54e87d6b127886d38592f93f9b0bd3ed3
65 files changed:
scilab/modules/commons/src/java/org/scilab/modules/commons/xml/ScilabXMLOutputFactory.java [new file with mode: 0644]
scilab/modules/scicos/includes/Controller.hxx
scilab/modules/scicos/includes/view_scilab/Adapters.hxx
scilab/modules/scicos/src/cpp/Controller.cpp
scilab/modules/scicos/src/cpp/Model_getObjectProperties.cpp
scilab/modules/scicos/src/cpp/Model_setObjectProperties.cpp
scilab/modules/scicos/src/cpp/model/Block.hxx
scilab/modules/scicos/src/cpp/model/Block.hxx.orig [deleted file]
scilab/modules/scicos/src/cpp/view_scilab/Adapters.cpp
scilab/modules/xcos/includes/gw_xcos.h
scilab/modules/xcos/includes/gw_xcos.hxx
scilab/modules/xcos/sci_gateway/cpp/sci_xcosDiagramToScilab.cpp
scilab/modules/xcos/sci_gateway/xcos_gateway.xml
scilab/modules/xcos/src/java/org/scilab/modules/xcos/Controller.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/JavaControllerJNI.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/Xcos.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/model/XcosCell.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/graph/model/XcosCellFactory.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/HandledElement.java [moved from scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/HandledElement.java with 93% similarity]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/HandledElementsCategory.java [moved from scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/HandledElementsCategory.java with 86% similarity]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/ScilabTypeCoder.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/XcosFileType.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/codec/package-info.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/BlockHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/CustomHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/JGraphXHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/LinkHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/PortHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/RawDataHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/ScilabHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/XcosSAXHandler.java [moved from scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/SAXHandler.java with 85% similarity]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/scicos/BlockModelElement.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/scicos/InputPortElement.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/scicos/LinkElement.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/scicos/OutputPortElement.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/spec/ContentEntry.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/spec/DictionaryEntry.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/spec/XcosPackage.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/BlockWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/CustomWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/JGraphXWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/LinkWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/PortWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/RawDataWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/ScilabWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/writer/XcosWriter.java [new file with mode: 0644]
scilab/modules/xcos/src/java/org/scilab/modules/xcos/link/BasicLink.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/link/commandcontrol/CommandControlLink.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/link/explicit/ExplicitLink.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/link/implicit/ImplicitLink.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/port/BasicPort.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/port/command/CommandPort.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/port/control/ControlPort.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/port/input/ExplicitInputPort.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/port/input/InputPort.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/port/output/OutputPort.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/utils/Stack.java [moved from scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/Stack.java with 95% similarity]
scilab/modules/xcos/src/jni/JavaController.i
scilab/modules/xcos/src/jni/JavaController_wrap.cxx
scilab/modules/xcos/src/jni/Xcos.cpp
scilab/modules/xcos/src/jni/Xcos.giws.xml
scilab/modules/xcos/src/jni/Xcos.hxx
scilab/modules/xcos/tests/unit_tests/empty.xcos [new file with mode: 0644]
scilab/modules/xcos/tests/unit_tests/xcosDiagramToScilab.dia.ref [new file with mode: 0644]
scilab/modules/xcos/tests/unit_tests/xcosDiagramToScilab.tst [new file with mode: 0644]