backupfilesConfirmDelete.setSelected(
Cache.getDefault(BackupFiles.CONFIRM_DELETE_OLD, true));
backupsOptionsSetEnabled(enableBackupFiles.isSelected());
+ updateBackupFilesExampleLabel();
/*
suffixPanel.setPreferredSize(
new Dimension(width, suffixPanel.getHeight()));
return exampleFilesPanel;
}
- private void updateBackupFilesExampleLabel()
+ protected void updateBackupFilesExampleLabel()
{
int exampleindex = 12;
String base = "filename";
"Failed casting (Integer) backupfilesRollMaxSpinner.getValue()");
}
- int surround = 2;
+ int lowersurround = 2;
+ int uppersurround = 0;
StringBuilder exampleSB = new StringBuilder();
boolean firstLine = true;
if (reverse)
int max = keepAll ? exampleindex : rollMax;
for (int index = min; index <= max; index++)
{
- if (index == min + surround && index < max)
+ if (index == min + lowersurround && index < max - uppersurround - 1)
{
exampleSB.append("\n...");
}
- else if (index > min + surround && index < max)
+ else if (index > min + lowersurround && index < max - uppersurround)
{
// nothing
}
for (int index = min; index <= max; index++)
{
- if (index == min + surround && index < max)
+ if (index == min + lowersurround && index < max - uppersurround - 1)
{
exampleSB.append("\n...");
}
- else if (index > min + surround && index < max)
+ else if (index > min + lowersurround && index < max - uppersurround)
{
// nothing
}