private void saveAllData() {
try {
Collection<AbstractPlugin> plugins = MAP_PLUGIN.values();
if (plugins != null && !plugins.isEmpty()) {
for (Iterator<AbstractPlugin> ite = plugins.iterator(); ite.hasNext();) {
final AbstractPlugin plugin = ite.next();
if (Answare.NEGATIVE.equals(plugin.onSavingData())) {
log("WRN - Can't save plugin:" + plugin.getId() + " RETURN FALSE");
Platform.runLater(() -> {
plugin.setSelected();
});
Tab tab = findTab(plugin.getId());
selectTab(tab);
return;
}
}
}