MainFrame construtor splitted, StatusPanel (with child controls) moved to a new component

This commit is contained in:
Honfika
2013-12-19 21:44:43 +01:00
parent 1bd2e12aca
commit 300d0d84bc
7 changed files with 638 additions and 467 deletions

View File

@@ -269,6 +269,15 @@ public class Configuration {
}
recentFiles.set(Helper.joinStrings(recentFilesArray, "::"));
}
public static void removeRecentFile(String path) {
List<String> recentFilesArray = new ArrayList<>(getRecentFiles());
int idx = recentFilesArray.indexOf(path);
if (idx != -1) {
recentFilesArray.remove(idx);
}
recentFiles.set(Helper.joinStrings(recentFilesArray, "::"));
}
/**
* Saves replacements to file for future use