// originating file's format
// TODO: work out how to recover feature settings for correct view(s) when
// file is reloaded.
- if (currentFileFormat == FileFormat.Jalview)
+ if (FileFormat.Jalview.equals(currentFileFormat))
{
JInternalFrame[] frames = Desktop.desktop.getAllFrames();
for (int i = 0; i < frames.length; i++)
{
boolean success = true;
- if (format == FileFormat.Jalview)
+ if (FileFormat.Jalview.equals(format))
{
String shortName = title;
}
if (type != null)
{
- if (type == FileFormat.PDB)
+ if (FileFormat.PDB.equals(type))
{
filesmatched.add(new Object[] { file, protocol, mtch });
continue;
// if the file isn't identified, or not positively identified as some
// other filetype (PFAM is default unidentified alignment file type) then
// try to parse as annotation.
- boolean isAnnotation = (format == null || format == FileFormat.Pfam) ? new AnnotationFile()
+ boolean isAnnotation = (format == null || FileFormat.Pfam
+ .equals(format)) ? new AnnotationFile()
.annotateAlignmentView(viewport, file, sourceType) : false;
if (!isAnnotation)
{
format = new IdentifyFile().identify(file, sourceType);
}
- if (format == FileFormat.Jnet)
+ if (FileFormat.Jnet.equals(format))
{
JPredFile predictions = new JPredFile(
file, sourceType);
isAnnotation = true;
}
// else if (IdentifyFile.FeaturesFile.equals(format))
- else if (format == FileFormat.Features)
+ else if (FileFormat.Features.equals(format))
{
if (parseFeaturesFile(file, sourceType))
{