MAJ V4.5.0

This commit is contained in:
pablo rodriguez 2024-04-20 14:24:35 +02:00
parent 4eb5d63caf
commit ae024ba56c
5 changed files with 4 additions and 5 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -36,6 +36,7 @@ public class actSaveEvaluation extends AbstractAction{
new creerNouvelleEvaluation(commandes.evaluationChargeEnMemoire);
new recupeNodeBaseEvaluations();
}else {
// n'a pas été chargé depuis la base de données.
String name = "Nouvelle évaluation";
name = JOptionPane.showInputDialog(null,"Donner un nom à cette évaluation ?",name);
if(!name.isBlank()) {

View File

@ -68,11 +68,9 @@ public class ecritureBaseEvaluation {
}
String baseToString = targetString.toString().replace("\t","").replace("\r", "").replace("\n", "").replaceAll(">/{1,}<","><");
Pattern p = Pattern.compile("<\\bevaluation\\b.{1,500}\\bdate\\b=\\\""+ evaluation.getAttributs().get("date") +"\\\".*?<\\/\\bevaluation\\b>");
Pattern p = Pattern.compile("<\\bevaluation\\b.{1,700}\\bdate\\b=\\\""+ evaluation.getAttributs().get("date") +"\\\".*?<\\/\\bevaluation\\b>");
Matcher m = p.matcher(baseToString);
if(m.find()) {
//Supprime le node évluation pour le remplacer par le nouveau.
debut = baseToString.substring(0,m.start());

View File

@ -58,7 +58,7 @@ public class removeEvaluation {
}
String baseToString = targetString.toString().replace("\t","").replace("\r", "").replace("\n", "").replaceAll(">/{1,}<","><");
Pattern p = Pattern.compile("<\\bevaluation\\b.{1,500}\\bdate\\b=\\\""+ evaluation.getAttributs().get("date") +"\\\".*?<\\/\\bevaluation\\b>");
Pattern p = Pattern.compile("<\\bevaluation\\b.{1,700}\\bdate\\b=\\\""+ evaluation.getAttributs().get("date") +"\\\".*?<\\/\\bevaluation\\b>");
Matcher m = p.matcher(baseToString);