if(entry != null) {\r
URL fileURL = FileLocator.toFileURL(entry);\r
File root = new File( URLDecoder.decode(fileURL.getPath(), "UTF-8") );\r
- File f = new File(root, "OpenModelica1.8.0");\r
+ File f = new File(root, "OpenModelica1.8.1");\r
return f;\r
}\r
}\r
*/\r
@UpdateMethod\r
public boolean update(ReadGraph g, Resource r) throws DatabaseException {\r
+ hasTimeReference = false;\r
+\r
String code = g.getPossibleRelatedValue(r, SysdynResource.getInstance(g).SysdynModelicaFunction_modelicaFunctionCode);\r
+ if(code == null)\r
+ return true;\r
+ \r
String[] elements = code.split("[\\+\\-\\*\\/\\(\\)\\[\\]\\{\\}=;\\s]");\r
- hasTimeReference = false;\r
for(String element : elements) {\r
if("time".equals(element)) {\r
hasTimeReference = true;\r