package org.simantics.sysdyn.ui.browser.contributions;\r
\r
import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor;\r
+import org.simantics.databoard.Bindings;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.exception.DatabaseException;\r
Resource varres = var.data;\r
StringBuilder sb = new StringBuilder();\r
for(Resource r : graph.getObjects(varres, l0.HasName))\r
- sb.append(graph.getValue(r));\r
+ sb.append(graph.<String>getValue(r, Bindings.STRING));\r
if(graph.isInstanceOf(varres, L0X.Realization)) {\r
varres = graph.getPossibleObject(varres, L0X.Represents);\r
if(varres == null) return sb.toString();\r
sb.append(" : ");\r
for(Resource t : graph.getObjects(varres, l0.InstanceOf))\r
for(Resource r : graph.getObjects(t, l0.HasName))\r
- sb.append(graph.getValue(r));\r
+ sb.append(graph.<String>getValue(r, Bindings.STRING));\r
return sb.toString();\r
}\r
\r
package org.simantics.sysdyn.ui.browser.contributions;\r
\r
import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor;\r
+import org.simantics.databoard.Bindings;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.exception.DatabaseException;\r
Resource resource = module.data;\r
StringBuilder sb = new StringBuilder();\r
for(Resource r : graph.getObjects(resource, l0.HasName))\r
- sb.append(graph.getValue(r));\r
+ sb.append(graph.<String>getValue(r, Bindings.STRING));\r
if(graph.isInstanceOf(resource, L0X.Realization)) {\r
resource = graph.getPossibleObject(resource, L0X.Represents);\r
if(resource == null) return sb.toString();\r
sb.append(" : ");\r
for(Resource t : graph.getObjects(resource, l0.InstanceOf))\r
for(Resource r : graph.getObjects(t, l0.HasName))\r
- sb.append(graph.getValue(r));\r
+ sb.append(graph.<String>getValue(r, Bindings.STRING));\r
return sb.toString();\r
}\r
\r
package org.simantics.sysdyn.ui.browser.contributions;\r
\r
import org.simantics.browsing.ui.graph.contributor.labeler.LabelerContributor;\r
+import org.simantics.databoard.Bindings;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
import org.simantics.db.exception.DatabaseException;\r
Resource varres = var.data;\r
StringBuilder sb = new StringBuilder();\r
for(Resource r : graph.getObjects(varres, l0.HasName))\r
- sb.append(graph.getValue(r));\r
+ sb.append(graph.<String>getValue(r, Bindings.STRING));\r
if(graph.isInstanceOf(varres, L0X.Realization)) {\r
varres = graph.getPossibleObject(varres, L0X.Represents);\r
if(varres == null) return sb.toString();\r
sb.append(" : ");\r
for(Resource t : graph.getObjects(varres, l0.InstanceOf))\r
for(Resource r : graph.getObjects(t, l0.HasName))\r
- sb.append(graph.getValue(r));\r
+ sb.append(graph.<String>getValue(r, Bindings.STRING));\r
return sb.toString();\r
}\r
\r
if (j < cycle.size() - 1) {\r
sb.append(g.getPossibleRelatedValue(node, l0.HasName, Bindings.STRING) + " -> ");\r
} else {\r
- sb.append(g.getPossibleRelatedValue(node, l0.HasName, Bindings.STRING));\r
+ sb.append(g.<String>getPossibleRelatedValue(node, l0.HasName, Bindings.STRING));\r
}\r
}\r
return sb.toString();\r
StringBuilder name = new StringBuilder();\r
\r
Resource variable = graph.getSingleObject(parameter, l0.PartOf);\r
- name.append(graph.getRelatedValue(variable, l0.HasName, Bindings.STRING));\r
+ name.append(graph.<String>getRelatedValue(variable, l0.HasName, Bindings.STRING));\r
\r
String suffix = graph.getPossibleRelatedValue(parameter, sys.Expression_arrayRange, Bindings.STRING);\r
if (suffix != null) {\r