{
this.selectedFile = selectedFile;
- if (selectedFile != null)
- this.inFile = selectedFile.getPath();
- this.inFile = file;
+ // BH 2019.10.06 PDB.getSequenceRecords calling this and then needs string,
+ // below
+ inFile = (selectedFile == null ? file : selectedFile.getPath());
try
{
if (fileFormat.isStructureFile())
}
else
{
+ // BH: This block is executed by PDBSequenceFetcherTest
+
// todo is mc_view parsing obsolete yet? JAL-2120
StructureImportSettings.setShowSeqFeatures(true);
alignFile = new mc_view.PDBfile(annotFromStructure,
public static DataSourceType checkProtocol(Object dataObject)
{
if(dataObject instanceof File)
+ {
return DataSourceType.FILE;
+ }
String data = dataObject.toString();
DataSourceType protocol = DataSourceType.PASTE;
return protocol;
}
+ /**
+ * @param args
+ * @j2sIgnore
+ */
public static void main(String[] args)
{
int i = 0;