// Fix the background color of the ViewScreen actor.
// Note that the ViewScreen actor also has a name change.
if ((container != null)
&& container.getName().equals("backgroundColor")) {
NamedObj actor = container.getContainer();
if ((actor != null)
&& actor.getClass().getName().startsWith(
"ptolemy.domains.gr.lib.ViewScreen")) {
String value = ((Settable) container).getExpression().trim();
if (value.startsWith("[")) {
value = value.replace('[', '{');
value = value.replace(']', '}');
((Settable) container).setExpression(value);
MoMLParser.setModified(true);
}
}
}
// Fix the polygon attribute of the PolyCylinder3D actor.
if ((container != null) && container.getName().equals("polygon")) {
NamedObj actor = container.getContainer();
if ((actor != null)
&& actor.getClass().getName().equals(
"ptolemy.domains.gr.lib.PolyCylinder3D")) {
String value = ((Settable) container).getExpression().trim();
if (value.startsWith("[")) {
value = value.replace('[', '{');
value = value.replace(']', '}');
((Settable) container).setExpression(value);
MoMLParser.setModified(true);
}
}
}
// Fix the polyline attribute of the CircularSweep3D actor.
if ((container != null) && container.getName().equals("polyline")) {
NamedObj actor = container.getContainer();
if ((actor != null)
&& actor.getClass().getName().equals(
"ptolemy.domains.gr.lib.CircularSweep3D")) {
String value = ((Settable) container).getExpression().trim();
if (value.startsWith("[")) {
value = value.replace('[', '{');