import jalview.api.AlignExportSettingsI;
import jalview.api.AlignViewportI;
+import jalview.bin.Jalview;
import jalview.io.FileFormatI;
import jalview.util.MessageManager;
public static boolean isNeeded(AlignViewportI viewport,
FileFormatI format)
{
- if (viewport.hasHiddenColumns() || viewport.hasHiddenRows()
- || format.isComplexAlignFile())
- {
- return true;
- }
- return false;
+ return !Jalview.getInstance().isHeadlessMode()
+ && (viewport.hasHiddenColumns() || viewport.hasHiddenRows()
+ || format.isComplexAlignFile());
}
/**