MAJ V4.3.2 Correction bug supprime le node text:tracked-changes des
fichiers des étudiants avant l'évaluation des nodes mais après l'évaluation des historiques.
This commit is contained in:
parent
8f16066a2f
commit
8487f44134
Binary file not shown.
Binary file not shown.
3
bin/.gitignore
vendored
3
bin/.gitignore
vendored
@ -1 +1,4 @@
|
|||||||
/resources/
|
/resources/
|
||||||
|
/MEPTL/
|
||||||
|
/evaluer/
|
||||||
|
/fenetres/
|
||||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -41,6 +41,7 @@ public class meptl {
|
|||||||
static double progression = 1.0;
|
static double progression = 1.0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* Ancienne version en mode console</br>
|
||||||
* Démarrage de l'application.<br>
|
* Démarrage de l'application.<br>
|
||||||
* <br>
|
* <br>
|
||||||
* @param args : les commandes de l'application.
|
* @param args : les commandes de l'application.
|
||||||
@ -1230,8 +1231,11 @@ public class meptl {
|
|||||||
|
|
||||||
LeNodeSujet = Run.XMLContent(targetString);
|
LeNodeSujet = Run.XMLContent(targetString);
|
||||||
|
|
||||||
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-start"); //historique des modification
|
//Supprime l'historique des modifications
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-start");
|
||||||
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-end");
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-end");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:deletion");
|
||||||
|
|
||||||
commandes.sujetSauvegarde = commandes.sujet.clone();
|
commandes.sujetSauvegarde = commandes.sujet.clone();
|
||||||
}
|
}
|
||||||
|
@ -60,15 +60,17 @@ public class rechercherUnNodeStudent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//*************************************************************************
|
||||||
|
//** Recherche les nodes text:p, text:h, text:span par le contenu textue **
|
||||||
|
//*************************************************************************
|
||||||
if(nodSujet.getNomElt().contains("text:")) {
|
if(nodSujet.getNomElt().contains("text:")) {
|
||||||
nodStudent = findNodeByContenuTextuel(nameNode, nodSujet, nod0Student, nod1Student, nod2Student, a);
|
nodStudent = findNodeByContenuTextuel(nameNode, nodSujet, nod0Student, nod1Student, nod2Student, a);
|
||||||
System.out.println("*1-"+nodSujet.retourneLesContenusEnfants(""));
|
// System.out.println("*1-"+nodSujet.retourneLesContenusEnfants(""));
|
||||||
if(nodStudent!=null) {
|
// if(nodStudent!=null) {
|
||||||
System.out.println("*2-"+nodStudent.retourneLesContenusEnfants(""));
|
// System.out.println("*2-"+nodStudent.retourneLesContenusEnfants(""));
|
||||||
}else {
|
// }else {
|
||||||
System.out.println("*2-null");
|
// System.out.println("*2-null");
|
||||||
}
|
// }
|
||||||
if(nodStudent!=null) return nodStudent;
|
if(nodStudent!=null) return nodStudent;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,6 +252,7 @@ public class rechercherUnNodeStudent {
|
|||||||
return nodStudent;
|
return nodStudent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recherche par le contenu par le plus proche voisin. Englobe les contenus des nodes enfants.</br>
|
* Recherche par le contenu par le plus proche voisin. Englobe les contenus des nodes enfants.</br>
|
||||||
* @param nameNode
|
* @param nameNode
|
||||||
|
@ -62,11 +62,21 @@ public class actNewFichierAnalyse extends AbstractAction{
|
|||||||
b = new Run(cheminVersFichier);
|
b = new Run(cheminVersFichier);
|
||||||
commandes.sujet = Run.XMLContent(b.getLectDossiers().getEC().getListeContentWriter().get(0));
|
commandes.sujet = Run.XMLContent(b.getLectDossiers().getEC().getListeContentWriter().get(0));
|
||||||
|
|
||||||
|
//Supprime l'historique des modifications
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:deletion");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-start");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-end");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
||||||
|
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change");
|
||||||
|
|
||||||
|
|
||||||
commandes.sujet = meptl.LectureFichierEtudiantSousFormeDeNode(commandes.sujet,b,0);
|
commandes.sujet = meptl.LectureFichierEtudiantSousFormeDeNode(commandes.sujet,b,0);
|
||||||
commandes.sujet.getAttributs().put("analysis_filename","sujet.xml");
|
commandes.sujet.getAttributs().put("analysis_filename","sujet.xml");
|
||||||
|
|
||||||
commandes.sujet = ecritureSujet.nodePourEcritureSujet(commandes.sujet,b,0);
|
commandes.sujet = ecritureSujet.nodePourEcritureSujet(commandes.sujet,b,0);
|
||||||
|
|
||||||
|
|
||||||
// try {
|
// try {
|
||||||
// Run.ecritureNodeEnXML(commandes.sujet , commandes.nameSujet+".xml",commandes.path,"Sujet");
|
// Run.ecritureNodeEnXML(commandes.sujet , commandes.nameSujet+".xml",commandes.path,"Sujet");
|
||||||
// } catch (IOException e1) {
|
// } catch (IOException e1) {
|
||||||
@ -74,10 +84,7 @@ public class actNewFichierAnalyse extends AbstractAction{
|
|||||||
// e1.printStackTrace();
|
// e1.printStackTrace();
|
||||||
// }
|
// }
|
||||||
|
|
||||||
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-start");
|
|
||||||
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change-end");
|
|
||||||
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
|
||||||
commandes.sujet.supprimeTousLesNodesEnfantWithThisName("text:change");
|
|
||||||
|
|
||||||
new verificationFichierAnalyse();
|
new verificationFichierAnalyse();
|
||||||
|
|
||||||
|
@ -148,6 +148,9 @@ public class evaluerLesFichiersEtudiants implements Runnable{
|
|||||||
node nod = Run.XMLContent(a.getLectDossiers().getEC().getListeContentWriter().get(i));
|
node nod = Run.XMLContent(a.getLectDossiers().getEC().getListeContentWriter().get(i));
|
||||||
node nodStudent=null;
|
node nodStudent=null;
|
||||||
try {
|
try {
|
||||||
|
//Supprime l'historique des modifications
|
||||||
|
nod.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
||||||
|
//Création du node de l'étudiant
|
||||||
nodStudent = meptl.LectureFichierEtudiantSousFormeDeNode(nod,a,i);
|
nodStudent = meptl.LectureFichierEtudiantSousFormeDeNode(nod,a,i);
|
||||||
} catch (IOException e1) {
|
} catch (IOException e1) {
|
||||||
e1.printStackTrace();
|
e1.printStackTrace();
|
||||||
|
@ -90,7 +90,10 @@ public class filechooserXML extends JFileChooser {
|
|||||||
//node.node2(targetString);
|
//node.node2(targetString);
|
||||||
node sujetLoad = new node(targetString.toString().replace("\t","").replace("\r", "").replace("\n", ""));
|
node sujetLoad = new node(targetString.toString().replace("\t","").replace("\r", "").replace("\n", ""));
|
||||||
|
|
||||||
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:change-start"); //historique des modification
|
//Supprime l'historique des modifications
|
||||||
|
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
||||||
|
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:deletion");
|
||||||
|
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:change-start");
|
||||||
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:change-end");
|
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:change-end");
|
||||||
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:tracked-changes");
|
||||||
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:change");
|
sujetLoad.supprimeTousLesNodesEnfantWithThisName("text:change");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user