private boolean add_structmodel(AlignmentI al, SequenceI refSeq2, String tempId,
String urlToModel, String urlToPairwise)
{
- String warningMessage = null, modelPath = null, modelProt = null, aliPath = null, aliProt = null;
+ String warningMessage = null, modelPath = null, aliPath = null;
+ DataSourceType modelProt = null, aliProt = null;
boolean added = false;
try {
// locate tempId. if it exists, will need to merge, otherwise:
aliProt = AppletFormatAdapter.checkProtocol(aliPath);
// 2. load urlToPairwise
AlignmentI pwa = new AppletFormatAdapter().readFile(aliPath, aliProt,
- "FASTA");
+ FileFormat.Fasta);
SequenceI qPw = null, tPw = null;
if (pwa != null)
{
Boolean.TRUE.toString());
FileLoader loader = new FileLoader(false);
af = loader.LoadFileWaitTillLoaded(profile_msa,
- FormatAdapter.FILE);
+ jalview.io.DataSourceType.FILE);
Desktop.addInternalFrame(af, "homology models", 800, 500);
al = af.getViewport().getAlignment();
- af.loadJalviewDataFile(profile_annot, FormatAdapter.FILE, null, null);
+ af.loadJalviewDataFile(profile_annot, jalview.io.DataSourceType.FILE,
+ null, null);
// if file was loaded, the view should have a reference sequence set
Assert.assertTrue(al.hasSeqrep());
}