import org.simantics.db.Issue;\r
import org.simantics.db.ReadGraph;\r
import org.simantics.db.Resource;\r
+import org.simantics.db.common.utils.NameUtils;\r
import org.simantics.db.exception.DatabaseException;\r
import org.simantics.db.layer0.variable.Variable;\r
import org.simantics.layer0.Layer0;\r
if(variablesReferences == null || variablesReferences.isEmpty())\r
return result;\r
\r
+ // Remove references to self\r
+ String name = NameUtils.getSafeName(graph, component);\r
+ if(name != null && variablesReferences.contains(name))\r
+ variablesReferences.remove(name);\r
+ \r
// Find all variables that are linked to component with arrows\r
Set<String> dependencies = ValidationUtils.getDependencies(graph, component);\r
dependencies.addAll(GLOBAL_VARIABLES);\r