log("WRN - Can't save plugin:" + plugin.getId() + " RETURN FALSE");
selectPluginTab(plugin);
return;
}
createPopupMessage("main_save_msg", new AnswerPopupMessage() {
@Override
public void onOk() {
String new_text_file = null;
try {
//========================================================//
//========================================================//
//========================================================//
new_text_file = getEncryptedMapToXml();
//========================================================//
//========================================================//
//========================================================//
if (Constants.SAVE_XML_TO_TEST) {
UtilityFX.saveText(new_text_file, maki_directory.toString()
+ File.separator + maki_file_map.getName() + "_" + UtilityFX.dataP() + ".xml");
}
} catch (Exception exc) {
log("ERROR - In save file EXC:" + exc);
exc.printStackTrace();
alert("err_in_save1", "Error", "Can't save data! Please check your installation directory.");
return;
}
if (new_text_file == null) {
alert("err_in_save2", "Error", "Encryption failed! Can't save data.");
return;
}
try {
__btn_save.setDisable(true);
if (checkNewFileToSave(new_text_file)) {
save(new_text_file, true);
setStatusMessage("Save complete.", 3000);
} else {
alert("err_in_ck_save_new_file1", "Warning", "Can't save data! Please "
+ "check if is present an invalid character in your account or notes and try again to save. INVALID CHARS:(£, §, ...)");
}
} catch (BaseApplicationException exc) {
log("### ERROR ### - SAVE main_save_msg file EXC:" + exc);
UtilityFX.exc(exc);
exc.printStackTrace();
alert("err_in_save_grave1", "Error", exc.getMessage(), true, new AnswerPopupMessage() {
@Override
public void onOk() {
openAccountsDirectory();
}