@JavaName formatDate\r
formatDate :: Long -> <ReadGraph> String \r
\r
- \r
+ @JavaName importModel\r
+ importModel :: String -> <Proc> ()\r
\ No newline at end of file
import java.util.Date;\r
import java.util.List;\r
\r
+import org.eclipse.core.runtime.NullProgressMonitor;\r
import org.simantics.databoard.Bindings;\r
import org.simantics.databoard.util.Base64;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.sysdyn.representation.Stock;\r
import org.simantics.sysdyn.representation.Variability;\r
import org.simantics.sysdyn.representation.Variable;\r
+import org.simantics.sysdyn.utils.imports.ImportUtils;\r
\r
public class DocumentationUtils {\r
\r
String result = DateFormat.getDateInstance().format(date);\r
return result;\r
}\r
+ \r
+ /**\r
+ * Supports importing Sysdyn models into the current project from TG files\r
+ * in SCL.\r
+ * \r
+ * @param path\r
+ */\r
+ public static void importModel(String path) {\r
+ ImportUtils.importModelFile(path, new NullProgressMonitor());\r
+ }\r
+\r
}\r