private void buildList() {
plugins = new SortedList<NameAndVersion>(PluginInstaller.findInstalledPlugins());
// Move those plugins that are not installed in the user plugin dir to another list:
EventList<NameAndVersion> outsideUserDir = new BasicEventList<NameAndVersion>();
for (Iterator<NameAndVersion> i = plugins.iterator(); i.hasNext();) {
NameAndVersion nav = i.next();
if (!nav.inUserDirectory) {
outsideUserDir.add(nav);
i.remove();
}
}