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