*/
package jalview.structures.models;
+import java.util.Locale;
+
import java.awt.Color;
import java.io.File;
import java.io.IOException;
/**
*
- * A base class to hold common function for protein structure model binding.
+ * A base class to hold common function for 3D structure model binding.
* Initial version created by refactoring JMol and Chimera binding models, but
* other structure viewers could in principle be accommodated in future.
*
}
}
}
+
@Override
public abstract void highlightAtoms(List<AtomSpec> atoms);
for (String reply : replies)
{
// return this error (Chimera only) to the user
- if (reply.toLowerCase().contains("unequal numbers of atoms"))
+ if (reply.toLowerCase(Locale.ROOT).contains("unequal numbers of atoms"))
{
error += "; " + reply;
}
for (StructureCommandI cmd : cmds)
{
List<String> replies = executeCommand(cmd, true);
- response.addAll(replies);
+ if (replies != null)
+ {
+ response.addAll(replies);
+ }
}
return response;
} finally