// This line prevents Windows Look&Feel resizing all new windows to maximum
// if previous window was maximised
- desktop.setDesktopManager(
- new MyDesktopManager(
- (Platform.isWindows() ? new DefaultDesktopManager()
- : Platform.isAMac()
- ? new AquaInternalFrameManager(
- desktop.getDesktopManager())
- : desktop.getDesktopManager())));
+ desktop.setDesktopManager(new MyDesktopManager(
+ (Platform.isWindows() ? new DefaultDesktopManager()
+ : Platform.isAMac()
+ ? new AquaInternalFrameManager(
+ desktop.getDesktopManager())
+ : desktop.getDesktopManager())));
Rectangle dims = getLastKnownDimensions("");
if (dims != null)
{
java.io.File projectFile = getProjectFile();
// autoSave indicates we already have a file and don't need to ask
- boolean autoSave = projectFile != null && !saveAs && BackupFiles.getEnabled();
+ boolean autoSave = projectFile != null && !saveAs
+ && BackupFiles.getEnabled();
- //System.out.println("autoSave="+autoSave+", projectFile='"+projectFile+"', saveAs="+saveAs+", Backups "+(BackupFiles.getEnabled()?"enabled":"disabled"));
+ // System.out.println("autoSave="+autoSave+", projectFile='"+projectFile+"',
+ // saveAs="+saveAs+", Backups
+ // "+(BackupFiles.getEnabled()?"enabled":"disabled"));
boolean approveSave = false;
if (!autoSave)
}
}
- if (approveSave || autoSave) {
+ if (approveSave || autoSave)
+ {
final Desktop me = this;
final java.io.File chosenFile = projectFile;
new Thread(new Runnable()
backupfiles.rollBackupsAndRenameTempFile();
} catch (OutOfMemoryError oom)
{
- new OOMWarning(
- "Whilst saving current state to " + chosenFile.getName(),
- oom);
+ new OOMWarning("Whilst saving current state to "
+ + chosenFile.getName(), oom);
} catch (Exception ex)
{
- Cache.log.error(
- "Problems whilst trying to save to " + chosenFile.getName(),
- ex);
+ Cache.log.error("Problems whilst trying to save to "
+ + chosenFile.getName(), ex);
JvOptionPane.showMessageDialog(me,
MessageManager.formatMessage(
"label.error_whilst_saving_current_state_to",
final String[] desc = new String[] { "Jalview Project",
"Jalview Project (old)" };
JalviewFileChooser chooser = new JalviewFileChooser(
- Cache.getProperty("LAST_DIRECTORY"), suffix,
- desc,
+ Cache.getProperty("LAST_DIRECTORY"), suffix, desc,
"Jalview Project");
chooser.setFileView(new JalviewFileView());
chooser.setDialogTitle(MessageManager.getString("label.restore_state"));
}
}
-
/**
* Accessor method to quickly get all the AlignmentFrames loaded.
*
try
{
- java.net.URL url = (URL) t.getTransferData(urlFlavour);
+ java.net.URL url = (URL) t.getTransferData(urlFlavour);
// nb: java 8 osx bug https://bugs.openjdk.java.net/browse/JDK-8156099
// means url may be null.
- if (url != null)
- {
- protocols.add(DataSourceType.URL);
- files.add(url.toString());
- Cache.log.debug("Drop handled as URL dataflavor "
- + files.get(files.size() - 1));
+ if (url != null)
+ {
+ protocols.add(DataSourceType.URL);
+ files.add(url.toString());
+ Cache.log.debug("Drop handled as URL dataflavor "
+ + files.get(files.size() - 1));
return;
}
else
"Please ignore plist error - occurs due to problem with java 8 on OSX");
}
;
- }
+ }
} catch (Throwable ex)
{
Cache.log.debug("URL drop handler failed.", ex);
&& (source.endsWith(".lnk") || source.endsWith(".url")
|| source.endsWith(".site")))
{
- try {
+ try
+ {
File lf = new File(files.get(f));
// process link file to get a URL
Cache.log.debug("Found potential link file: " + lf);
files.set(f, fullname);
Cache.log.debug("Parsed real filename " + fullname
+ " to extract protocol: " + protocols.get(f));
- }
- catch (Exception ex)
+ } catch (Exception ex)
{
- Cache.log.error("Couldn't parse "+files.get(f)+" as a link file.",ex);
+ Cache.log.error(
+ "Couldn't parse " + files.get(f) + " as a link file.",
+ ex);
}
}
}
import java.io.File;
import java.io.IOException;
import java.util.Arrays;
-import java.util.Map;
import java.util.HashMap;
+import java.util.Map;
import java.util.TreeMap;
/*
public static final String REVERSE_ORDER = NS + "_REVERSE_ORDER";
- public static final String CONFIRM_DELETE_OLD = NS + "_CONFIRM_DELETE_OLD";
+ public static final String CONFIRM_DELETE_OLD = NS
+ + "_CONFIRM_DELETE_OLD";
private static final String DEFAULT_TEMP_FILE = "jalview_temp_file_" + NS;
this(file, ".v" + NUM_PLACEHOLDER, false, 4, 3, false);
}
- public BackupFiles(File file,
- String defaultSuffix, boolean defaultNoMax, int defaultMax,
- int defaultDigits,
- boolean defaultReverseOrder)
+ public BackupFiles(File file, String defaultSuffix, boolean defaultNoMax,
+ int defaultMax, int defaultDigits, boolean defaultReverseOrder)
{
classInit();
this.file = file;
return tempFile.renameTo(file);
}
-
// roll the backupfiles
public boolean rollBackupFiles()
{
// Create/move backups up one
File[] oldFilesToDelete = null;
-
+
// find existing backup files
BackupFilenameFilter bff = new BackupFilenameFilter(basename, suffix,
digits);
File[] backupFiles = dirFile.listFiles(bff);
int nextIndexNum = 0;
String confirmDeleteExtraInfo = null;
-
+
if (backupFiles.length == 0)
{
// No other backup files. Just need to move existing file to backupfile_1
}
else
{
- TreeMap<Integer, File> bfTreeMap = sortBackupFilesAsTreeMap(backupFiles, basename);
+ TreeMap<Integer, File> bfTreeMap = sortBackupFilesAsTreeMap(
+ backupFiles, basename);
if (reverseOrder)
{
// if (m == 0 && backupfile_n.exists())
if ((!noMax) && n == tempMax && backupfile_n.exists())
{
- // move the largest (max) rolled file to a temp file and add to the delete list
+ // move the largest (max) rolled file to a temp file and add to the
+ // delete list
try
{
File temp = File.createTempFile(backupfilename, TEMP_FILE_EXT,
- dirFile);
+ dirFile);
backupfile_n.renameTo(temp);
oldFilesToDelete = new File[] { temp };
// version style numbering (with earliest file deletion if max files
// reached)
-
bfTreeMap.values().toArray(backupFiles);
// noMax == true means keep all backup files
return ret;
}
- private void deleteOldFiles(File[] oldFilesToDelete, String confirmDeleteExtraInfo) {
+ private void deleteOldFiles(File[] oldFilesToDelete,
+ String confirmDeleteExtraInfo)
+ {
if (oldFilesToDelete != null && oldFilesToDelete.length > 0)
{
// delete old backup/version files
}
}
- private TreeMap sortBackupFilesAsTreeMap(File[] backupFiles, String basename) {
- // sort the backup files (based on integer found in the suffix) using a
- // precomputed Hashmap for speed
- Map<Integer, File> bfHashMap = new HashMap<>();
- for (int i = 0; i < backupFiles.length; i++)
- {
- File f = backupFiles[i];
- BackupFilenameParts bfp = new BackupFilenameParts(f, basename, suffix, digits);
- bfHashMap.put(bfp.indexNum(), f);
- }
- TreeMap<Integer, File> bfTreeMap = new TreeMap<>();
- bfTreeMap.putAll(bfHashMap);
- return bfTreeMap;
+ private TreeMap sortBackupFilesAsTreeMap(File[] backupFiles,
+ String basename)
+ {
+ // sort the backup files (based on integer found in the suffix) using a
+ // precomputed Hashmap for speed
+ Map<Integer, File> bfHashMap = new HashMap<>();
+ for (int i = 0; i < backupFiles.length; i++)
+ {
+ File f = backupFiles[i];
+ BackupFilenameParts bfp = new BackupFilenameParts(f, basename, suffix,
+ digits);
+ bfHashMap.put(bfp.indexNum(), f);
+ }
+ TreeMap<Integer, File> bfTreeMap = new TreeMap<>();
+ bfTreeMap.putAll(bfHashMap);
+ return bfTreeMap;
}
public boolean rollBackupsAndRenameTempFile()
{
boolean write = this.getWriteSuccess();
-
+
boolean roll = false;
- if (write) {
+ if (write)
+ {
roll = this.rollBackupFiles();
- } else {
+ }
+ else
+ {
return false;
}
-
+
/*
* Not sure that this confirmation is desirable. By this stage the new file is
* already written successfully, but something (e.g. disk full) has happened while
int confirm = JvOptionPane.showConfirmDialog(Desktop.desktop,
MessageManager.getString(
"label.backupfiles_confirm_save_file_backupfiles_roll_wrong"),
- MessageManager.getString("label.backupfiles_confirm_save_file"),
+ MessageManager
+ .getString("label.backupfiles_confirm_save_file"),
JvOptionPane.YES_NO_OPTION, JvOptionPane.WARNING_MESSAGE);
if (confirm == JvOptionPane.YES_OPTION)
}
public static TreeMap<Integer, File> getBackupFilesAsTreeMap(
- String fileName,
- String suffix, int digits)
+ String fileName, String suffix, int digits)
{
File[] backupFiles = null;
String filename = file.getName();
String basename = filename;
-
+
// find existing backup files
- BackupFilenameFilter bff = new BackupFilenameFilter(basename, suffix, digits);
+ BackupFilenameFilter bff = new BackupFilenameFilter(basename, suffix,
+ digits);
backupFiles = dirFile.listFiles(bff); // is clone needed?
-
+
// sort the backup files (based on integer found in the suffix) using a
// precomputed Hashmap for speed
Map<Integer, File> bfHashMap = new HashMap<>();
return bfTreeMap;
}
-
}
-
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.Font;
-import java.awt.FontMetrics;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.GridLayout;
import java.awt.event.KeyListener;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
-import java.util.ArrayList;
-import java.util.Map;
import java.util.HashMap;
+import java.util.Map;
import javax.swing.AbstractCellEditor;
import javax.swing.BorderFactory;
protected JCheckBox sortByTree = new JCheckBox();
-
/*
* Web Services tab
*/
embbedBioJSON.setText(MessageManager.getString("label.embbed_biojson"));
embbedBioJSON.setBounds(new Rectangle(228, 200, 250, 23));
-
TitledBorder backupFilesBorder = new TitledBorder(
- MessageManager
- .getString("label.backup_files"));
-
+ MessageManager.getString("label.backup_files"));
jPanel11.add(jLabel1);
jPanel11.add(blcjv);
hiddenColour_actionPerformed(hiddenColour);
}
});
-
+
useLegacyGap = new JCheckBox(
MessageManager.getString("label.ov_legacy_gap"));
useLegacyGap.setFont(LABEL_FONT);
useLegacyGap.setHorizontalAlignment(SwingConstants.LEFT);
useLegacyGap.setVerticalTextPosition(SwingConstants.TOP);
- gapLabel = new JLabel(
- MessageManager.getString("label.gap_colour"));
+ gapLabel = new JLabel(MessageManager.getString("label.gap_colour"));
gapLabel.setFont(LABEL_FONT);
gapLabel.setHorizontalAlignment(SwingConstants.LEFT);
gapLabel.setVerticalTextPosition(SwingConstants.TOP);
private JPanel initBackupsTab()
{
JPanel backupsTab = new JPanel();
- backupsTab.setBorder(new TitledBorder(MessageManager
- .getString("label.backup_files")));
+ backupsTab.setBorder(new TitledBorder(
+ MessageManager.getString("label.backup_files")));
backupsTab.setLayout(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.weightx = 0.5;
enableBackupFiles.setFont(LABEL_FONT_BOLD);
- enableBackupFiles.setText(
- MessageManager.getString("label.enable_backupfiles"));
+ enableBackupFiles
+ .setText(MessageManager.getString("label.enable_backupfiles"));
enableBackupFiles.addActionListener(new ActionListener()
{
@Override
gbc.gridx = 1;
gbc.weightx = 1.0;
gbc.gridheight = 2;
- //gbc.anchor = GridBagConstraints.NORTHEAST;
- //gbc.fill = GridBagConstraints.HORIZONTAL;
+ // gbc.anchor = GridBagConstraints.NORTHEAST;
+ // gbc.fill = GridBagConstraints.HORIZONTAL;
backupsTab.add(exampleFilesPanel, gbc);
gbc.gridx = 0;
// whole examples panel next row
gbc.gridy = 3;
backupsTab.add(exampleFilesPanel, gbc);
-
+
// fill empty space
gbc.gridy = 4;
gbc.weighty = 1.0;
return backupsTab;
}
- private final IntKeyStringValueEntry[] backupfilesPresetEntries =
- {
- new IntKeyStringValueEntry(1, MessageManager.getString("label.default")),
- new IntKeyStringValueEntry(2, MessageManager.getString("label.single_file")),
- new IntKeyStringValueEntry(3, MessageManager.getString("label.keep_everything")),
- new IntKeyStringValueEntry(4, MessageManager.getString("label.rolled_backups")),
- // ...
- // IMPORTANT, keep "Custom" entry with key 0 (even though it appears last)
- new IntKeyStringValueEntry(0, MessageManager.getString("label.custom"))
- };
+ private final IntKeyStringValueEntry[] backupfilesPresetEntries = {
+ new IntKeyStringValueEntry(1,
+ MessageManager.getString("label.default")),
+ new IntKeyStringValueEntry(2,
+ MessageManager.getString("label.single_file")),
+ new IntKeyStringValueEntry(3,
+ MessageManager.getString("label.keep_everything")),
+ new IntKeyStringValueEntry(4,
+ MessageManager.getString("label.rolled_backups")),
+ // ...
+ // IMPORTANT, keep "Custom" entry with key 0 (even though it appears last)
+ new IntKeyStringValueEntry(0,
+ MessageManager.getString("label.custom")) };
private final Map<Integer, BackupFilesPresetEntry> backupfilesPresetEntriesValues = new HashMap<Integer, BackupFilesPresetEntry>()
- {{
- put(1, new BackupFilesPresetEntry(".v"+BackupFiles.NUM_PLACEHOLDER, 3, false, false, 4, false));
+ {
+ {
+ put(1, new BackupFilesPresetEntry(".v" + BackupFiles.NUM_PLACEHOLDER,
+ 3, false, false, 4, false));
put(2, new BackupFilesPresetEntry("~", 1, false, false, 1, false));
- put(3, new BackupFilesPresetEntry(".v"+BackupFiles.NUM_PLACEHOLDER, 3, false, true, 10, true));
- put(4, new BackupFilesPresetEntry("_bak."+BackupFiles.NUM_PLACEHOLDER, 1, true, false, 9, false));
- }};
+ put(3, new BackupFilesPresetEntry(".v" + BackupFiles.NUM_PLACEHOLDER,
+ 3, false, true, 10, true));
+ put(4, new BackupFilesPresetEntry(
+ "_bak." + BackupFiles.NUM_PLACEHOLDER, 1, true, false, 9,
+ false));
+ }
+ };
private JPanel initBackupsTabPresetsPanel()
{
- presetsPanel.setBorder(new TitledBorder(
- MessageManager.getString("label.presets")));
+ presetsPanel.setBorder(
+ new TitledBorder(MessageManager.getString("label.presets")));
for (int i = 0; i < backupfilesPresetEntries.length; i++)
{
- backupfilesPresetsCombo.addItem(backupfilesPresetEntries[i]);
+ backupfilesPresetsCombo.addItem(backupfilesPresetEntries[i]);
}
backupfilesPresetsCombo.addActionListener(new ActionListener()
- {
- @Override
- public void actionPerformed(ActionEvent e)
- {
- backupsTabUpdatePresets();
- }
- }
- );
+ {
+ @Override
+ public void actionPerformed(ActionEvent e)
+ {
+ backupsTabUpdatePresets();
+ }
+ });
presetsPanel.add(backupfilesPresetsCombo);
return presetsPanel;
private void backupsTabUpdatePresets()
{
- IntKeyStringValueEntry entry = (IntKeyStringValueEntry) backupfilesPresetsCombo.getSelectedItem();
+ IntKeyStringValueEntry entry = (IntKeyStringValueEntry) backupfilesPresetsCombo
+ .getSelectedItem();
int key = entry.getKey();
String value = entry.getValue();
- boolean custom = key==0;
+ boolean custom = key == 0;
if (custom)
{
- //backupsSetCustomOptions();
- } else
+ // backupsSetCustomOptions();
+ }
+ else
{
if (backupfilesPresetEntriesValues.containsKey(key))
{
backupsSetOptions(backupfilesPresetEntriesValues.get(key));
- } else {
- System.out.println("Preset '"+value+"' not implemented yet");
+ }
+ else
+ {
+ System.out.println("Preset '" + value + "' not implemented yet");
}
}
protected int getComboIntStringKey(JComboBox c)
{
IntKeyStringValueEntry e = (IntKeyStringValueEntry) c.getSelectedItem();
- return e!=null?e.getKey():0;
+ return e != null ? e.getKey() : 0;
}
- protected void setComboIntStringKey(JComboBox<IntKeyStringValueEntry> c, int key)
+ protected void setComboIntStringKey(JComboBox<IntKeyStringValueEntry> c,
+ int key)
{
- for (int i=0; i < c.getItemCount(); i++)
+ for (int i = 0; i < c.getItemCount(); i++)
+ {
+ IntKeyStringValueEntry e = c.getItemAt(i);
+ int k = e.getKey();
+ String v = e.getValue();
+ if (e.getKey() == key)
{
- IntKeyStringValueEntry e = c.getItemAt(i);
- int k = e.getKey();
- String v = e.getValue();
- if (e.getKey() == key)
- {
- c.setSelectedIndex(i);
- break;
- }
+ c.setSelectedIndex(i);
+ break;
}
- backupsTabUpdatePresets();
+ }
+ backupsTabUpdatePresets();
}
private JPanel initBackupsTabSuffixPanel()
suffixTemplateLabel.setHorizontalAlignment(SwingConstants.LEFT);
suffixTemplateLabel.setFont(LABEL_FONT);
- final String tooltip = JvSwingUtils.wrapTooltip(true, MessageManager
- .getString("label.suffix_template_tooltip"));
+ final String tooltip = JvSwingUtils.wrapTooltip(true,
+ MessageManager.getString("label.suffix_template_tooltip"));
suffixTemplate.setToolTipText(tooltip);
suffixTemplate.addActionListener(new ActionListener()
{
};
setIntegerSpinner(suffixDigitsSpinner, defaultmin, defaultmax, 3, c);
- suffixReverse.setLabels(
- MessageManager.getString("label.reverse_roll"),
+ suffixReverse.setLabels(MessageManager.getString("label.reverse_roll"),
MessageManager.getString("label.increment_index"));
suffixReverse.addActionListener(new ActionListener()
{
sgbc.weightx = 1.0;
sgbc.weighty = 0.0;
sgbc.fill = GridBagConstraints.NONE;
- suffixPanel.add(suffixTemplateLabel,sgbc);
-
+ suffixPanel.add(suffixTemplateLabel, sgbc);
+
sgbc.gridx = 1;
sgbc.fill = GridBagConstraints.HORIZONTAL;
suffixPanel.add(suffixTemplate, sgbc);
-
+
// second row (number of digits spinner)
sgbc.gridy = 1;
-
+
sgbc.gridx = 0;
sgbc.fill = GridBagConstraints.NONE;
suffixPanel.add(suffixDigitsLabel, sgbc);
jp.add(backupfilesConfirmDelete.getTrueButton());
jp.add(backupfilesConfirmDelete.getFalseButton());
keepfilesPanel.add(jp, kgbc);
-
+
return keepfilesPanel;
}
{
String title = MessageManager.getString("label.example_filenames");
TitledBorder tb = new TitledBorder(title);
- //tb.setTitleFont(LABEL_FONT);
+ // tb.setTitleFont(LABEL_FONT);
exampleFilesPanel.setBorder(tb);
exampleFilesPanel.setLayout(new GridBagLayout());
- //inordinately difficult to get this titledborder the right size for the title
+ // inordinately difficult to get this titledborder the right size for the
+ // title
backupfilesExampleLabel.setEditable(false);
backupfilesExampleLabel.setPreferredSize(new Dimension(280, 85));
backupfilesExampleLabel.setAlignmentX(LEFT_ALIGNMENT);
backupfilesExampleLabel.setAlignmentY(TOP_ALIGNMENT);
-
+
backupfilesExampleLabel.setFont(LABEL_FONT_ITALIC);
backupfilesExampleLabel
.setBackground(exampleFilesPanel.getBackground());
String suffix = suffixTemplate.getText();
int digits = 3;
- try {
+ try
+ {
suffixDigitsSpinner.commitEdit();
digits = (Integer) suffixDigitsSpinner.getValue();
digits = digits < 1 ? 1 : digits;
} catch (Exception e)
{
- System.out.println("Failed casting (Integer) suffixTemplateSpinner.getValue()");
+ System.out.println(
+ "Failed casting (Integer) suffixTemplateSpinner.getValue()");
}
boolean reverse = suffixReverse.isSelected();
boolean keepAll = backupfilesKeepAll.isSelected();
String newest = MessageManager.getString("label.braced_newest");
if (newest != null && newest.length() > 0)
{
- exampleSB.append(" "+newest);
+ exampleSB.append(" " + newest);
}
}
else if (index == max)
String oldest = MessageManager.getString("label.braced_oldest");
if (oldest != null && oldest.length() > 0)
{
- exampleSB.append(" "+oldest);
+ exampleSB.append(" " + oldest);
}
}
}
String oldest = MessageManager.getString("label.braced_oldest");
if (oldest != null && oldest.length() > 0)
{
- exampleSB.append(" "+oldest);
+ exampleSB.append(" " + oldest);
}
}
else if (index == max)
String newest = MessageManager.getString("label.braced_newest");
if (newest != null && newest.length() > 0)
{
- exampleSB.append(" "+newest);
+ exampleSB.append(" " + newest);
}
}
}
protected void backupsCustomOptionsSetEnabled(boolean enabled)
{
- backupsOptionsSetEnabled(enabled, false);
+ backupsOptionsSetEnabled(enabled, false);
}
protected void backupsOptionsSetEnabled(boolean enabled)
{
- backupsOptionsSetEnabled(enabled, true);
+ backupsOptionsSetEnabled(enabled, true);
}
protected void backupsOptionsSetEnabled(boolean enabled, boolean all)
if (all)
{
- presetsPanel.setEnabled(enabled);
- exampleFilesPanel.setEnabled(enabled);
+ presetsPanel.setEnabled(enabled);
+ exampleFilesPanel.setEnabled(enabled);
- backupfilesPresetsCombo.setEnabled(enabled);
- backupfilesExampleLabel.setEnabled(enabled);
+ backupfilesPresetsCombo.setEnabled(enabled);
+ backupfilesExampleLabel.setEnabled(enabled);
}
suffixPanel.setEnabled(enabled);
keepfilesPanel.setEnabled(enabled);
}
}
- protected void backupsSetOptions(String suffix, int digits, boolean reverse, boolean keepAll, int rollMax, boolean confirmDelete)
+ protected void backupsSetOptions(String suffix, int digits,
+ boolean reverse, boolean keepAll, int rollMax,
+ boolean confirmDelete)
{
suffixTemplate.setText(suffix);
suffixDigitsSpinner.setValue(digits);
protected void backupsSetOptions(BackupFilesPresetEntry p)
{
- backupsSetOptions(p.suffix, p.digits, p.reverse, p.keepAll, p.rollMax, p.confirmDelete);
+ backupsSetOptions(p.suffix, p.digits, p.reverse, p.keepAll, p.rollMax,
+ p.confirmDelete);
}
protected void autoIdWidth_actionPerformed()
}
}
-class IntKeyStringValueEntry {
+class IntKeyStringValueEntry
+{
int k;
+
String v;
+
public IntKeyStringValueEntry(int k, String v)
{
this.k = k;
this.v = v;
}
+
@Override
public String toString()
{
return this.getValue();
}
+
public int getKey()
{
return k;
}
+
public String getValue()
{
return v;
}
}
-class BackupFilesPresetEntry {
+class BackupFilesPresetEntry
+{
String suffix;
+
int digits;
+
boolean reverse;
+
boolean keepAll;
+
int rollMax;
+
boolean confirmDelete;
- public BackupFilesPresetEntry(String suffix, int digits, boolean reverse, boolean keepAll, int rollMax, boolean confirmDelete)
+
+ public BackupFilesPresetEntry(String suffix, int digits, boolean reverse,
+ boolean keepAll, int rollMax, boolean confirmDelete)
{
this.suffix = suffix;
this.digits = digits;