}
if (source instanceof HtmlFile)
{
- ((HtmlFile) source).LoadAlignmentFeatures(alignFrame);
+ ((HtmlFile) source).applySettingsToAlignFrame(alignFrame);
}
else if (source instanceof JSONFile)
{
- ((JSONFile) source).LoadAlignmentFeatures(alignFrame);
+ ((JSONFile) source).applySettingsToAlignFrame(alignFrame);
}
if (raiseGUI)
final String errorMessage = "Couldn't load file " + title + "\n"
+ error;
- if (raiseGUI)
+ // TODO: refactor FileLoader to be independent of Desktop / Applet GUI
+ // bits ?
+ if (raiseGUI && Desktop.desktop != null)
{
javax.swing.SwingUtilities.invokeLater(new Runnable()
{