import org.simantics.sysdyn.representation.Configuration;\r
import org.simantics.sysdyn.representation.IElement;\r
import org.simantics.sysdyn.representation.Module;\r
+import org.simantics.sysdyn.representation.Shadow;\r
import org.simantics.sysdyn.representation.Sheet;\r
import org.simantics.sysdyn.representation.Variable;\r
import org.simantics.sysdyn.ui.modelica.ModelicaSourceViewerConfiguration;\r
return true;\r
IElement current = sysdynModel.getElement(resource);\r
for(IElement e : configuration.getElements()) {\r
- if(e instanceof Variable) {\r
+ if(e instanceof Variable && !(e instanceof Shadow)) {\r
Variable v = (Variable) e;\r
if(!v.equals(current) && v.getName() != null && v.getName().equals(name)) {\r
return true;\r