- this.selectedFile = file;
- this.file = file.getPath();
- this.protocol = sourceType;
- this.format = format;
- return _LoadFileWaitTillLoaded();
- }
-
- /**
- * Load alignment from FileParse source of type format and wait till loaded
- *
- * @param source
- * @param format
- * @return alignFrame constructed from file contents
- */
- public AlignFrame LoadFileWaitTillLoaded(AlignmentFileReaderI source,
- FileFormatI format)
- {
- this.source = source;
-
- file = source.getInFile();
- protocol = source.getDataSourceType();
- this.format = format;
- return _LoadFileWaitTillLoaded();
+ setFileFields(null, fileObject, fileObject.getPath(), sourceType, format);
+ return _loadFileWaitTillLoaded();