import jalview.analysis.AlignmentUtils;
import jalview.datamodel.AlignmentI;
import jalview.gui.AlignFrame;
-import jalview.gui.Desktop;
import jalview.gui.SplitFrame;
import jalview.io.DataSourceType;
import jalview.io.FileFormatException;
/*
* convert to SplitFrame if a valid file2 is supplied
*/
- int height = AlignFrame.DEFAULT_HEIGHT;
AlignFrame alignFrame2 = createAlignFrame(PARAM_FILE2);
if (alignFrame2 != null)
{
if (splitFrame != null)
{
internalFrame = splitFrame;
- height *= 2;
}
}
// fudge so that dialogs can be opened with this frame as parent
// todo JAL-3031 also override Desktop.addInternalFrame etc
- Desktop.parent = frame.getContentPane();
+ // Desktop.parent = frame.getContentPane();
frame.pack();
- frame.setSize(AlignFrame.DEFAULT_WIDTH, height);
+ frame.setSize(AlignFrame.DEFAULT_WIDTH, AlignFrame.DEFAULT_HEIGHT);
frame.setVisible(true);
}
// todo extract helper for protocol resolution from JalviewLite
DataSourceType sourceType = featureFile.startsWith("http")
? DataSourceType.URL
- : DataSourceType.LOCALURL;
+ : DataSourceType.RELATIVE_URL;
alignFrame.parseFeaturesFile(featureFile, sourceType);
}
}
if (file != null)
{
DataSourceType protocol = file.startsWith("http") ? DataSourceType.URL
- : DataSourceType.LOCALURL;
+ : DataSourceType.RELATIVE_URL;
// DataSourceType protocol = AppletFormatAdapter.checkProtocol(file);
FileFormatI format = new IdentifyFile().identify(file, protocol);
FileLoader fileLoader = new FileLoader(false);