}
}
- @SuppressWarnings({ "unchecked", "rawtypes" })
- private void NOTprocessWithJmolParser(List<SequenceI> prot)
- throws Exception
- {
- try
- {
-
- Class cl = Class.forName("jalview.ext.jmol.JmolParser");
- if (cl != null)
- {
- final Constructor constructor = cl
- .getConstructor(new Class[]
- { FileParse.class });
- final Object[] args = new Object[] {
- new FileParse(getDataName(), dataSourceType) };
-
- StructureImportSettings.setShowSeqFeatures(false);
- StructureImportSettings.setVisibleChainAnnotation(false);
- StructureImportSettings
- .setProcessSecondaryStructure(predictSecondaryStructure);
- StructureImportSettings
- .setExternalSecondaryStructure(externalSecondaryStructure);
- StructureImportSettings
- .setTemperatureFactorType(temperatureFactorType);
- Object jmf = constructor.newInstance(args);
- AlignmentI al = new Alignment((SequenceI[]) cl
- .getMethod("getSeqsAsArray", new Class[] {}).invoke(jmf));
- cl.getMethod("addAnnotations", new Class[] { AlignmentI.class })
- .invoke(jmf, al);
- for (SequenceI sq : al.getSequences())
- {
- if (sq.getDatasetSequence() != null)
- {
- sq.getDatasetSequence().getAllPDBEntries().clear();
- }
- else
- {
- sq.getAllPDBEntries().clear();
- }
- }
- replaceAndUpdateChains(prot, al, AlignSeq.PEP, false);
- }
- } catch (ClassNotFoundException q)
- {
- }
- StructureImportSettings.setShowSeqFeatures(true);
- }
-
private void processWithJmolParser(List<SequenceI> prot,
boolean doXferSettings) throws MalformedURLException, IOException
{
import org.testng.Assert;
import org.testng.annotations.AfterClass;
-import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
import jalview.gui.AlignFrame;
import jalview.gui.JvOptionPane;
-@Test(singleThreaded = true)
public class BackupFilesTest
{
@BeforeClass(alwaysRun = true)
}
// this deletes the newFile (if it exists) and any saved backup file for it
- @AfterTest(alwaysRun = true)
@AfterClass(alwaysRun = true)
private void cleanupTmpFiles()
{
newfile.delete();
}
File[] tmpFiles = getBackupFiles(file, mysuffix, mydigits);
- boolean a = true;
for (int i = 0; i < tmpFiles.length; i++)
{
if (actuallyDeleteTmpFiles)