*/
package jalview.structure;
+
+import java.util.Locale;
+
import jalview.bin.ApplicationSingletonProvider;
import jalview.bin.ApplicationSingletonProvider.ApplicationSingletonI;
+
+
import jalview.datamodel.PDBEntry;
import jalview.datamodel.PDBEntry.Type;
*/
public class StructureImportSettings implements ApplicationSingletonI
{
-
private StructureImportSettings()
{
// private singleton
return (StructureImportSettings) ApplicationSingletonProvider
.getInstance(StructureImportSettings.class);
}
-
/**
* set to true to add derived sequence annotations (temp factor read from
* file, or computed secondary structure) to the alignment
* Set true to predict secondary structure (using JMol for protein, Annotate3D
* for RNA)
*/
- private boolean processSecStr = false;
+ private static boolean processSecStr = false;
/**
* Set true (with predictSecondaryStructure=true) to predict secondary
*/
private boolean externalSecondaryStructure = false;
- private boolean showSeqFeatures = true;
+ private static boolean showSeqFeatures = true;
public enum StructureParser
{
* Determines the default file format for structure files to be downloaded
* from the PDB sequence fetcher. Possible options include: PDB|mmCIF
*/
- private PDBEntry.Type defaultStructureFileFormat = Type.PDB;
+ private PDBEntry.Type defaultStructureFileFormat = Type.PDB; // TODO 2.12 should be mmCIF now ?
/**
* Determines the parser used for parsing PDB format file. Possible options
String defaultStructureFileFormat)
{
getInstance().defaultStructureFileFormat = PDBEntry.Type
- .valueOf(defaultStructureFileFormat.toUpperCase());
+ .valueOf(defaultStructureFileFormat.toUpperCase(Locale.ROOT));
}
public static String getDefaultPDBFileParser()
public static void setDefaultPDBFileParser(String defaultPDBFileParser)
{
getInstance().defaultPDBFileParser = StructureParser
- .valueOf(defaultPDBFileParser.toUpperCase());
+ .valueOf(defaultPDBFileParser.toUpperCase(Locale.ROOT));
}
}