private void updateInfo(final String path) { final ModuleInfo info = windowModules.get(path); // TODO - update module weights // notify interested parties info.update(eventService); }
@Override public void add(final String path) { final boolean present = recentModules.containsKey(path); // add path to recent files list if (present) recentFiles.remove(path); recentFiles.add(path); // persist the updated list saveList(); if (present) { // path already present; update linked module info final ModuleInfo info = recentModules.get(path); // TODO - update module weights info.update(eventService); } else { // new path; create linked module info final ModuleInfo info = createInfo(path); recentModules.put(path, info); // register the module with the module service moduleService.addModule(info); } }
@Override public void add(final String path) { final boolean present = recentModules.containsKey(path); // add path to recent files list if (present) recentFiles.remove(path); recentFiles.add(path); // persist the updated list saveList(); if (present) { // path already present; update linked module info final ModuleInfo info = recentModules.get(path); // TODO - update module weights info.update(eventService); } else { // new path; create linked module info final ModuleInfo info = createInfo(path); recentModules.put(path, info); // register the module with the module service moduleService.addModule(info); } }