Xcos GUI: fix ZCOS reading 94/17394/3
authorPaul Bignier <paul.bignier@scilab-enterprises.com>
Tue, 27 Oct 2015 08:17:20 +0000 (09:17 +0100)
committerClément DAVID <clement.david@scilab-enterprises.com>
Tue, 27 Oct 2015 10:09:24 +0000 (11:09 +0100)
commit0943189a327e6f6669e69ec3d04aae08a4c772e5
treed51f70a6770f9aef40de3943e6afa7babc247686
parentf3dc3f5d3ce4477dfff69692edab51c7533eeeb3
Xcos GUI: fix ZCOS reading

 * Some ZCOS files define ports twice, so only read them once.
Don't create a new object in the model but resync them.

// Positioning & sizes need to be fixed but the import passes!
--> xcos(SCI + "/modules/xcos/demos/Simple_Demo.zcos");

Change-Id: Ifc47aec6f83b72df151b79c5019f352ba5f6b900
scilab/modules/xcos/src/java/org/scilab/modules/xcos/explorer/BrowserTreeNodeData.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/io/sax/PortHandler.java
scilab/modules/xcos/src/java/org/scilab/modules/xcos/modelica/ModelicaController.java