MAJ V4.5.0
This commit is contained in:
parent
4eb5d63caf
commit
ae024ba56c
Binary file not shown.
File diff suppressed because one or more lines are too long
@ -36,6 +36,7 @@ public class actSaveEvaluation extends AbstractAction{
|
|||||||
new creerNouvelleEvaluation(commandes.evaluationChargeEnMemoire);
|
new creerNouvelleEvaluation(commandes.evaluationChargeEnMemoire);
|
||||||
new recupeNodeBaseEvaluations();
|
new recupeNodeBaseEvaluations();
|
||||||
}else {
|
}else {
|
||||||
|
// n'a pas été chargé depuis la base de données.
|
||||||
String name = "Nouvelle évaluation";
|
String name = "Nouvelle évaluation";
|
||||||
name = JOptionPane.showInputDialog(null,"Donner un nom à cette évaluation ?",name);
|
name = JOptionPane.showInputDialog(null,"Donner un nom à cette évaluation ?",name);
|
||||||
if(!name.isBlank()) {
|
if(!name.isBlank()) {
|
||||||
|
@ -68,11 +68,9 @@ public class ecritureBaseEvaluation {
|
|||||||
}
|
}
|
||||||
String baseToString = targetString.toString().replace("\t","").replace("\r", "").replace("\n", "").replaceAll(">/{1,}<","><");
|
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);
|
Matcher m = p.matcher(baseToString);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(m.find()) {
|
if(m.find()) {
|
||||||
//Supprime le node évluation pour le remplacer par le nouveau.
|
//Supprime le node évluation pour le remplacer par le nouveau.
|
||||||
debut = baseToString.substring(0,m.start());
|
debut = baseToString.substring(0,m.start());
|
||||||
|
@ -58,7 +58,7 @@ public class removeEvaluation {
|
|||||||
}
|
}
|
||||||
String baseToString = targetString.toString().replace("\t","").replace("\r", "").replace("\n", "").replaceAll(">/{1,}<","><");
|
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);
|
Matcher m = p.matcher(baseToString);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user