package jalview.io;
+import jalview.bin.Cache;
+
import java.io.File;
public class BackupFilenameParts
String filename, String base, boolean extensionMatch)
{
BackupFilenameParts bfp = new BackupFilenameParts();
- BackupFilesPresetEntry bfpe = BackupFilesPresetEntry
- .getSavedBackupEntry();
- String template = bfpe.suffix;
+ String template = Cache.getDefault(BackupFiles.SUFFIX, null);
if (template == null)
{
return bfp;
int digits;
try
{
- digits = bfpe.digits;
+ digits = Integer
+ .parseInt(Cache.getDefault(BackupFiles.SUFFIX_DIGITS, null));
} catch (Exception e)
{
return bfp;