]> gerrit.simantics Code Review - simantics/sysdyn.git/commitdiff
Added some Sysdyn Molecules (refs #4343).
authormiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 13 Mar 2014 11:39:32 +0000 (11:39 +0000)
committermiettinen <miettinen@ac1ea38d-2e2b-0410-8846-a27921b304fc>
Thu, 13 Mar 2014 11:39:32 +0000 (11:39 +0000)
Fixed the last export filename extension in Sysdyn models.
Export Sysdyn model button to become export as... if the path doesn't exist.

git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@29117 ac1ea38d-2e2b-0410-8846-a27921b304fc

org.simantics.sysdyn.feature/rootfiles/molecules/Ceiling.sysdyn [new file with mode: 0644]
org.simantics.sysdyn.feature/rootfiles/molecules/Floor.sysdyn [new file with mode: 0644]
org.simantics.sysdyn.feature/rootfiles/sampleModels/Discovery And Exploitation Of Resources.sysdyn
org.simantics.sysdyn.feature/rootfiles/sampleModels/Global Carbon Cycle.sysdyn
org.simantics.sysdyn.feature/rootfiles/sampleModels/Predator And Limited Prey.sysdyn
org.simantics.sysdyn.feature/rootfiles/sampleModels/Resource Exploitation Use Recycling.sysdyn
org.simantics.sysdyn.feature/rootfiles/sampleModels/Tourists Environments And Hotel Facilities.sysdyn
org.simantics.sysdyn.ui/src/org/simantics/sysdyn/ui/handlers/exports/ExportModelHandler.java

diff --git a/org.simantics.sysdyn.feature/rootfiles/molecules/Ceiling.sysdyn b/org.simantics.sysdyn.feature/rootfiles/molecules/Ceiling.sysdyn
new file mode 100644 (file)
index 0000000..e64e923
Binary files /dev/null and b/org.simantics.sysdyn.feature/rootfiles/molecules/Ceiling.sysdyn differ
diff --git a/org.simantics.sysdyn.feature/rootfiles/molecules/Floor.sysdyn b/org.simantics.sysdyn.feature/rootfiles/molecules/Floor.sysdyn
new file mode 100644 (file)
index 0000000..fe77652
Binary files /dev/null and b/org.simantics.sysdyn.feature/rootfiles/molecules/Floor.sysdyn differ
index bcbd16c29db79db92bb4931bf8f5f9f985515782..f48023010fe790461e6b75a06522fa5ff2335f72 100644 (file)
Binary files a/org.simantics.sysdyn.feature/rootfiles/sampleModels/Discovery And Exploitation Of Resources.sysdyn and b/org.simantics.sysdyn.feature/rootfiles/sampleModels/Discovery And Exploitation Of Resources.sysdyn differ
index 60edfdfa6b34efe0ec79d99065f8efd73cafbbf8..d1766ada2c125e868be0e6a759fed8c86433b7af 100644 (file)
Binary files a/org.simantics.sysdyn.feature/rootfiles/sampleModels/Global Carbon Cycle.sysdyn and b/org.simantics.sysdyn.feature/rootfiles/sampleModels/Global Carbon Cycle.sysdyn differ
index 2a8f549df8ed295af817bc820272292ccb38be5b..c43d5f075a549ad923f762c7b4979eeb753c6a5d 100644 (file)
Binary files a/org.simantics.sysdyn.feature/rootfiles/sampleModels/Predator And Limited Prey.sysdyn and b/org.simantics.sysdyn.feature/rootfiles/sampleModels/Predator And Limited Prey.sysdyn differ
index 132c2fc7044d528b9d8b0b854381255be23b0544..94bd03c6efad856d2606fac8866a3cda811202da 100644 (file)
Binary files a/org.simantics.sysdyn.feature/rootfiles/sampleModels/Resource Exploitation Use Recycling.sysdyn and b/org.simantics.sysdyn.feature/rootfiles/sampleModels/Resource Exploitation Use Recycling.sysdyn differ
index d82832a45ed6d7e8445ba8c4c5aa7c1ef7eb7507..6824cfd1b49cd03f783a1f18efcc49e9e057414c 100644 (file)
Binary files a/org.simantics.sysdyn.feature/rootfiles/sampleModels/Tourists Environments And Hotel Facilities.sysdyn and b/org.simantics.sysdyn.feature/rootfiles/sampleModels/Tourists Environments And Hotel Facilities.sysdyn differ
index 92a5ac8e2e73be774c7a64c71ee94ca2c5b6c263..1d7888409600755860bfbfc8ffa40706ef928f4a 100644 (file)
@@ -191,6 +191,10 @@ public class ExportModelHandler extends AbstractHandler {
                        // Use import default path.\r
                        path = Activator.getDefault().getPreferenceStore().getString(ImportUtilsUI.IMPORTMODELTPATH);\r
                }\r
+               if (saveAs == false && !(new File(path).exists())) {\r
+                       // Save == Save as... when the path doesn't exist. \r
+                       return getAbsolutePath(model, event, true);\r
+               }\r
                if(path.isEmpty() || !(new File(path).exists()))\r
                        path = Platform.getLocation().toOSString();\r
                                \r