/** Adds a path to the list of recent files. */ public void add(final String path) { final boolean present = recentModules.containsKey(path); if (present) { // remove(path); // updateInfo(path); } else { recentModules.put(path, createInfo(path)); recentFiles.add(path); Prefs.putList(recentFiles, RECENT_FILES_KEY); } }