+
+ }
+
+ public static BackupFilenameParts currentBackupFilenameParts(
+ String filename, String base, boolean extensionMatch)
+ {
+ BackupFilenameParts bfp = new BackupFilenameParts();
+ BackupFilesPresetEntry bfpe = BackupFilesPresetEntry
+ .getSavedBackupEntry();
+ String template = bfpe.suffix;
+ if (template == null)
+ {
+ return bfp;
+ }
+ int digits;
+ try
+ {
+ digits = bfpe.digits;
+ } catch (Exception e)
+ {
+ return bfp;
+ }
+ return new BackupFilenameParts(filename, base, template, digits,
+ extensionMatch);