MAJ V4.5.0

This commit is contained in:
pablo rodriguez 2024-06-05 09:20:53 +02:00
parent 903cd2185c
commit 35ed308632
274 changed files with 1928 additions and 1332 deletions

View File

@ -1,7 +1,12 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
org.eclipse.jdt.core.compiler.codegen.targetPlatform=19
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
org.eclipse.jdt.core.compiler.compliance=19
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error

Binary file not shown.

Binary file not shown.

BIN
analyseWriter_lib/cXML.jar Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

17
bin/.gitignore vendored
View File

@ -1,15 +1,2 @@
/MEPTL/
/OnLineVersions/
/action/
/baseEvaluations/
/baseListesEtudiants/
/calcul/
/com/
/evaluer/
/list/
/menucontextuel/
/sousmenuArbre/
/sousmenuEvaluation/
/sousmenuRecherche/
/sousmenuRepresentation/
/META-INF/
/analyseWriter/
/resources/

BIN
jpackage.log Normal file

Binary file not shown.

View File

@ -1,24 +1,21 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project default="create_run_jar" name="Create Runnable Jar for Project analyseWriter with Jar-in-Jar Loader">
<!--this file was created by Eclipse Runnable JAR file Export Wizard-->
<!--ANT 1.7 is required-->
<project default="create_run_jar" name="Create Runnable Jar for Project analyseWriter">
<!--this file was created by Eclipse Runnable JAR Export Wizard-->
<!--ANT 1.7 is required -->
<!--define folder properties-->
<property name="dir.buildfile" value="."/>
<property name="dir.workspace" value="C:/Users/pabr6/eclipse-workspace"/>
<property name="dir.jarfile" value="${dir.buildfile}"/>
<target name="create_run_jar">
<jar destfile="${dir.jarfile}/analyseWriter.jar">
<jar destfile="${dir.jarfile}/analyseWriter.jar" filesetmanifest="mergewithoutmain">
<manifest>
<attribute name="Main-Class" value="org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader"/>
<attribute name="Rsrc-Main-Class" value="com.analyseWriter.fenetres.mainApp"/>
<attribute name="Main-Class" value="analyseWriter.fenetres.mainApp"/>
<attribute name="Class-Path" value="."/>
<attribute name="Rsrc-Class-Path" value="./ cXML.jar miglayout15-swing.jar zip4j-1.2.7.jar"/>
</manifest>
<zipfileset src="jar-in-jar-loader.zip"/>
<fileset dir="${dir.jarfile}/bin"/>
<zipfileset dir="${dir.jarfile}/libs" includes="cXML.jar"/>
<zipfileset dir="${dir.jarfile}/libs" includes="miglayout15-swing.jar"/>
<zipfileset dir="${dir.jarfile}/libs" includes="zip4j-1.2.7.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jarfile}/libs/cXML.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jarfile}/libs/miglayout15-swing.jar"/>
<zipfileset excludes="META-INF/*.SF" src="${dir.jarfile}/libs/zip4j-1.2.7.jar"/>
</jar>
</target>
</project>

View File

@ -1,10 +1,10 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.text.DecimalFormat;
import java.util.ArrayList;
import analyseWriter.evaluer.evaluation;
import cXML.node;
import evaluer.evaluation;
/**
*

View File

@ -1,4 +1,4 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.text.ParseException;
import java.util.ArrayList;
@ -8,9 +8,9 @@ import java.util.Hashtable;
import javax.swing.JEditorPane;
import analyseWriter.calcul.formatDateWriter;
import cXML.Run;
import cXML.node;
import calcul.formatDateWriter;
public class VerificationHistorique {

View File

@ -1,4 +1,4 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.io.IOException;
import java.nio.file.Paths;

View File

@ -1,16 +1,16 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.text.ParseException;
import java.util.ArrayList;
import java.util.Date;
import analyseWriter.list.listeDesNodesAnalyseStyle;
import analyseWriter.list.listeDesNodesEvalPlacement;
import analyseWriter.list.listeDesNodesRechercheByContenu;
import analyseWriter.list.listeEvalNameNode;
import analyseWriter.list.listeRechercheParAnchorPageNumber;
import cXML.Run;
import cXML.node;
import list.listeDesNodesAnalyseStyle;
import list.listeDesNodesEvalPlacement;
import list.listeDesNodesRechercheByContenu;
import list.listeEvalNameNode;
import list.listeRechercheParAnchorPageNumber;
/**
@ -46,11 +46,11 @@ public class ecritureSujet {
try {
//C'est la date d'enregistrement du fichier
nod.getAttributs().put("date", calcul.formatDateWriter.DateLibreOffice(aujourdhui));
nod.getAttributs().put("date", analyseWriter.calcul.formatDateWriter.DateLibreOffice(aujourdhui));
//La modification date mini permet de réaliser un contrôle des dates.
//Les étudiants ne peuvent pas réaliser le contrôle vant cette date.
nod.getAttributs().put("modificationDateMini", calcul.formatDateWriter.DateLibreOffice(aujourdhui));
nod.getAttributs().put("modificationDateMini", analyseWriter.calcul.formatDateWriter.DateLibreOffice(aujourdhui));
} catch (ParseException e) {
e.printStackTrace();
}

View File

@ -1,4 +1,4 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.io.BufferedWriter;
import java.io.IOException;
@ -18,8 +18,8 @@ import java.util.Enumeration;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import analyseWriter.calcul.formatDateWriter;
import cXML.node;
import calcul.formatDateWriter;
public class feedbacks {

View File

@ -1,4 +1,4 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.io.BufferedReader;
import java.io.BufferedWriter;
@ -18,12 +18,12 @@ import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import baseListesEtudiants.ecritureBaseListesEtudiants;
import analyseWriter.baseListesEtudiants.ecritureBaseListesEtudiants;
import analyseWriter.calcul.formatDateWriter;
import analyseWriter.evaluer.evaluation;
import cXML.Run;
import cXML.Run.UserStatus;
import cXML.node;
import calcul.formatDateWriter;
import evaluer.evaluation;
/**

View File

@ -1,4 +1,4 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.util.ArrayList;
@ -7,9 +7,9 @@ import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import analyseWriter.evaluer.evaluation;
import cXML.Run;
import cXML.node;
import evaluer.evaluation;
/**
*

View File

@ -1,4 +1,4 @@
package MEPTL;
package analyseWriter.MEPTL;
import java.io.IOException;
import java.util.Dictionary;
@ -8,9 +8,9 @@ import java.util.regex.Pattern;
import javax.swing.JOptionPane;
import analyseWriter.evaluer.evaluation;
import cXML.Run;
import cXML.node;
import evaluer.evaluation;
/**
*

View File

@ -1,4 +1,4 @@
package OnLineVersions;
package analyseWriter.OnLineVersions;
import java.io.BufferedReader;
import java.io.IOException;
@ -10,9 +10,7 @@ import java.net.UnknownHostException;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
@ -9,8 +9,8 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.about;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.about;
import analyseWriter.fenetres.create;
public class actAPropos extends AbstractAction{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
@ -9,8 +9,8 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.about;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.about;
import analyseWriter.fenetres.create;
public class actAbout extends AbstractAction{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actAddMenuFalse extends AbstractAction{
@ -25,9 +24,9 @@ public class actAddMenuFalse extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.addMenu(false);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actAddMenuTrue extends AbstractAction{
@ -25,9 +24,9 @@ public class actAddMenuTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.addMenu(true);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -17,7 +17,7 @@ public class actAfficheInformationFichierAnalyse extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
com.analyseWriter.fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
analyseWriter.fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -8,11 +8,10 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.allContent;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.allContent;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesAllContent;
import cXML.node;
import list.listeDesNodesAllContent;
public class actAllContent extends AbstractAction{
@ -30,9 +29,9 @@ public class actAllContent extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(listeDesNodesAllContent.isAllContent(nod)) {
new allContent(nod,com.analyseWriter.fenetres.create.getTextNodeSelect());
new allContent(nod,analyseWriter.fenetres.create.getTextNodeSelect());
}
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -10,12 +10,11 @@ import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.attributs;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.attributs;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeAttributsAnalyseWriter;
import analyseWriter.list.listeNodesNonModifiableAttribut;
import cXML.node;
import list.listeAttributsAnalyseWriter;
import list.listeNodesNonModifiableAttribut;
public class actAttribut extends AbstractAction{
@ -32,7 +31,7 @@ public class actAttribut extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int nbrAttribut = nod.getAttributs().size();
@ -47,7 +46,7 @@ public class actAttribut extends AbstractAction{
if(nbrAttribut>0) {
if(listeNodesNonModifiableAttribut.isModifiableAttribut(nod.getNomElt())) {
new attributs(nod,com.analyseWriter.fenetres.create.getTextNodeSelect());
new attributs(nod,analyseWriter.fenetres.create.getTextNodeSelect());
}else {
JOptionPane.showMessageDialog(null, "Vous ne pouvez pas modifier les attributs de ce node.");
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -11,9 +11,8 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actCoefficient extends AbstractAction{
@ -29,7 +28,7 @@ public class actCoefficient extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
double poids = 1.00;
if(nod.getAttributs().get("poids")!=null) {
try {
@ -54,15 +53,15 @@ public class actCoefficient extends AbstractAction{
poids = Double.valueOf(poidsField.getText());
if(poids<=0) {
nod.poids(Double.valueOf(1));
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>poids=1.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>poids=1.</h2>");
}else {
nod.poids(Double.valueOf(poids));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>La valeur n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>La valeur n'a pas été modifiée.</h2>");
}
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,7 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
public class actCollapseAll extends AbstractAction{
@ -22,7 +22,7 @@ public class actCollapseAll extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
com.analyseWriter.fenetres.create.collapseAll();
analyseWriter.fenetres.create.collapseAll();
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,7 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
public class actCollapseNode extends AbstractAction{
@ -21,7 +21,7 @@ public class actCollapseNode extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
com.analyseWriter.fenetres.create.collapseNode(com.analyseWriter.fenetres.create.getSelectNode());
analyseWriter.fenetres.create.collapseNode(analyseWriter.fenetres.create.getSelectNode());
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
@ -11,8 +11,7 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.baliseStyle;
import cXML.Run;
import cXML.node;
@ -31,7 +30,7 @@ public class actCopy extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();
@ -42,7 +41,7 @@ public class actCopy extends AbstractAction{
System.out.println(texto.toString());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()+"<hr><h2>Le node est copié dans le presse papier.</h2><hr>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise()+"<hr><h2>Le node est copié dans le presse papier.</h2><hr>");
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -14,8 +14,7 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actDeleteNode extends AbstractAction{
@ -34,12 +33,12 @@ public class actDeleteNode extends AbstractAction{
public void actionPerformed(ActionEvent e) {
if(com.analyseWriter.fenetres.create.getTree().getSelectionPath()!=null) {
if(analyseWriter.fenetres.create.getTree().getSelectionPath()!=null) {
JPanel myPanel = new JPanel();
JLabel message1 = new JLabel("Voulez-vous supprimer ce node ?");
JLabel message2 = new JLabel(com.analyseWriter.fenetres.create.getSelectNode().toString());
JLabel message2 = new JLabel(analyseWriter.fenetres.create.getSelectNode().toString());
myPanel.add(message1);
myPanel.add(message2);
// a spacer
@ -47,24 +46,24 @@ public class actDeleteNode extends AbstractAction{
int result = JOptionPane.showConfirmDialog(null, myPanel, "Suppression d'un node", JOptionPane.OK_CANCEL_OPTION);
if (result == JOptionPane.OK_OPTION) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(!(nod.getNomElt().equals("setting")||nod.getNomElt().equals("csv")||nod.getNomElt().equals("import_moodle")||nod.getNomElt().equals("zip")
||nod.getNomElt().equals("plagiarism")||nod.getNomElt().equals("text:similarity")||nod.getNomElt().equals("color") ||nod.getNomElt().equals("translation") )) {
nod.getParent().supprimeNodeEnfant(nod);
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath().getParentPath();
DefaultMutableTreeNode nodMu = com.analyseWriter.fenetres.create.getSelectNode();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath().getParentPath();
DefaultMutableTreeNode nodMu = analyseWriter.fenetres.create.getSelectNode();
DefaultMutableTreeNode SelectParentNode = (DefaultMutableTreeNode) nodMu.getParent();
SelectParentNode.remove(nodMu);
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
}else {

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
@ -10,7 +10,7 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
public class actDocumentation extends AbstractAction{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -12,9 +12,8 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.create;
import cXML.node;
public class actDownNode extends AbstractAction{
@ -31,24 +30,24 @@ public class actDownNode extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
if(com.analyseWriter.fenetres.create.getTree().getSelectionPath()!=null) {
if(analyseWriter.fenetres.create.getTree().getSelectionPath()!=null) {
// int a = JOptionPane.showConfirmDialog(null,"Voulez-vous descendre le node " + fenetres.create.getSelectNode().toString() + "?", "Sélectionner un choix", JOptionPane.YES_NO_OPTION);
//
// if(a == JOptionPane.YES_NO_OPTION) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(!nod.chemin().contains("setting")) {
DefaultMutableTreeNode selectNode = com.analyseWriter.fenetres.create.getSelectNode();
DefaultMutableTreeNode selectNode = analyseWriter.fenetres.create.getSelectNode();
DefaultMutableTreeNode selectParentNode = (DefaultMutableTreeNode) selectNode.getParent();
int selectedNodeIndex = selectNode.getParent().getIndex(selectNode);
int count = selectNode.getParent().getChildCount();
if(selectedNodeIndex<count-1) {
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
nod.getParent().downNodeEnfant(nod);
DefaultTreeModel treeModel = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel treeModel = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
treeModel.insertNodeInto(selectNode, selectParentNode, selectedNodeIndex+1);
String nameNode = nod.getNomElt();
@ -58,11 +57,11 @@ public class actDownNode extends AbstractAction{
}
DefaultMutableTreeNode root = (DefaultMutableTreeNode) treeModel.getRoot();
com.analyseWriter.fenetres.create.setTree(treeModel);
analyseWriter.fenetres.create.setTree(treeModel);
treeModel.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalAncrageNumeroAbsoluePageEnfantsNon extends AbstractAction{
@ -23,9 +22,9 @@ public class actEvalAncrageNumeroAbsoluePageEnfantsNon extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).supprimeAttribut("evalAncrageNumeroAbsoluePage");
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod); }
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod); }
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -7,9 +7,8 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalAncrageNumeroAbsoluePageEnfantsOui extends AbstractAction{
@ -25,7 +24,7 @@ public class actEvalAncrageNumeroAbsoluePageEnfantsOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
if(nod.getAttributs().get("evalAncrageNumeroAbsoluePage")!=null) {
point = Integer.valueOf(nod.getAttributs().get("evalAncrageNumeroAbsoluePage"));
@ -39,19 +38,19 @@ public class actEvalAncrageNumeroAbsoluePageEnfantsOui extends AbstractAction{
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).getAttributs().remove("evalAncrageNumeroAbsoluePage");
}
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF SUPÉRIEUR à zéro.<br>L'attribut <b>evalAncrageNumeroAbsoluePage<b> a été supprimé.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF SUPÉRIEUR à zéro.<br>L'attribut <b>evalAncrageNumeroAbsoluePage<b> a été supprimé.</h2>");
}else {
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).getAttributs().put("evalAncrageNumeroAbsoluePage", String.valueOf(point));
}
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un <b>nombre entier</b>.<br>L'attribut n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un <b>nombre entier</b>.<br>L'attribut n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalAncrageNumeroAbsoluePageOui extends AbstractAction{
@ -24,13 +23,13 @@ public class actEvalAncrageNumeroAbsoluePageOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalAncrageNumeroAbsoluePage",
"<html><p>Si le node dans le fichier de l'étudiant est sur la même page de<br>"
+ "numéro absolue, alors l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalAncrageNumeroAbsoluePage.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnumeropageancrage.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalEnteteActive extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalEnteteActive extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalEnteteActive",
"<html><p>Si ce node dans le fichier de l'étudiant contient le node<br>"
+ "<i>style:header-footer-properties</i> (en-tête activé),<br>"
@ -32,6 +31,6 @@ public class actEvalEnteteActive extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalEnteteActive</p></html>",
new ImageIcon(create.class.getResource("/resources/enteteoui.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalEntetePasActive extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalEntetePasActive extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalEntetePasActive",
"<html><p>Si ce node dans le fichier de l'étudiant ne contient pas le node<br>"
+ "<i>style:header-footer-properties</i> (en-tête désactivé),<br>"
@ -32,7 +31,7 @@ public class actEvalEntetePasActive extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalEntetePasActive</p></html>",
new ImageIcon(create.class.getResource("/resources/entetenon.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalFirstChildTrue extends AbstractAction{
@ -24,14 +23,14 @@ public class actEvalFirstChildTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalFirstChild",
"<html><p>Si ce node est le premier node dans le fichier de l'étudiant alors<br>"
+ "l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalFirstChild</p></html>",
new ImageIcon(create.class.getResource("/resources/premierenfant.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.util.regex.Matcher;
@ -8,9 +8,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointCaseCoche;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointCaseCoche;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalFormatageDirect extends AbstractAction{
@ -26,7 +25,7 @@ public class actEvalFormatageDirect extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
String namestyle ="";
String texteInsert = "<p><span style=\"color: red;\">Ce paragraphe ne possède pas de formatage direct.</span></p><br>";
@ -53,7 +52,7 @@ public class actEvalFormatageDirect extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalFormatageDirect.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalformatagedirect.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalInitialCreator extends AbstractAction{
@ -24,13 +23,13 @@ public class actEvalInitialCreator extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalNameInitialCreator",
"<html><p>Si ce node contient le prénom et nom du premier auteur, <br>"
+ "alors l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNameInitialCreator</p></html>",
new ImageIcon(create.class.getResource("/resources/auteurcreateur.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalLastChildTrue extends AbstractAction{
@ -24,14 +23,14 @@ public class actEvalLastChildTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalLastChild",
"<html><p>Si ce node est le dernier node dans le fichier de l'étudiant alors<br>"
+ "l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalLastChild</p></html>",
new ImageIcon(create.class.getResource("/resources/dernierenfant.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNameNodeOui extends AbstractAction{
@ -24,14 +23,14 @@ public class actEvalNameNodeOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalNameNode",
"<html><p>Si ce node est présent dans le fichier de l'étudiant alors<br>"
+ "l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNameNode.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnode.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNamePageOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalNamePageOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePointpourNumeroPageEtStructure.showCustominputDialog(nod,"evalNamePage",
"<html><p>Si le node \"page\" dans le fichier de l'étudiant est du <br>"
+ "même style de page (même nom de la page) que ce node, <br>"
@ -34,7 +33,7 @@ public class actEvalNamePageOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNamePage.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnamepage.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNameSequenceNon extends AbstractAction{
@ -23,9 +22,9 @@ public class actEvalNameSequenceNon extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalNameSequence");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNameSequenceOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalNameSequenceOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalNameSequence",
"<html><p>Si ce node contient le nom de la variable de séquence <br>"
+ "<i>(ex. création d'une catégorie)</i>, alors l'étudiant obtiendra <br>"
@ -32,6 +31,6 @@ public class actEvalNameSequenceOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNameSequence</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnamesequence.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNombreDePageMaxiNon extends AbstractAction{
@ -23,9 +22,9 @@ public class actEvalNombreDePageMaxiNon extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().remove("evalNombreDePageMaxi");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -11,9 +11,8 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNombreDePageMaxiOui extends AbstractAction{
@ -29,7 +28,7 @@ public class actEvalNombreDePageMaxiOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
int nombrePage = 1;
if(nod.getAttributs().get("evalNombreDePageMaxi")!=null) {
@ -73,12 +72,12 @@ public class actEvalNombreDePageMaxiOui extends AbstractAction{
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>La valeur n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>La valeur n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNombreDePageMiniNon extends AbstractAction{
@ -23,9 +22,9 @@ public class actEvalNombreDePageMiniNon extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().remove("evalNombreDePageMini");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -11,9 +11,8 @@ import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JTextField;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNombreDePageMiniOui extends AbstractAction{
@ -29,7 +28,7 @@ public class actEvalNombreDePageMiniOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
int nombrePage = 1;
if(nod.getAttributs().get("evalNombreDePageMini")!=null) {
@ -73,11 +72,11 @@ public class actEvalNombreDePageMiniOui extends AbstractAction{
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>La valeur n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>La valeur n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod); }
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod); }
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointInputNombreSansCaseACocher;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointInputNombreSansCaseACocher;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNombreParagraphe extends AbstractAction{
@ -21,7 +20,7 @@ public class actEvalNombreParagraphe extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePointInputNombreSansCaseACocher.showCustominputDialog(nod,"evalnombreparagraphe",
"<html><p>Si le node de l'étudiant contient le même nombre<br>"
+ "de paragraphe <b>\"text:p\"</b> et de titre <b>\"text:h\"</b>,<br>"
@ -30,7 +29,7 @@ public class actEvalNombreParagraphe extends AbstractAction{
+ "d'évaluation evalnombreparagraphe.</p><br>"
+ "<p>Le nombre de paragraphe doit être indiqué ci-dessous.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnombreparagraphe.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNumeroAbsoluePageOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalNumeroAbsoluePageOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePointpourNumeroPageEtStructure.showCustominputDialog(nod,"evalNumeroAbsoluePage",
"<html><p>Si le node \"page\" dans le fichier de l'étudiant est situé <br>"
+ "au même numéro de page absolue que ce node de page, <br>"
@ -34,6 +33,6 @@ public class actEvalNumeroAbsoluePageOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNumeroAbsoluePage.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnumeroabsoluepage.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalNumeroPageOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalNumeroPageOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePointpourNumeroPageEtStructure.showCustominputDialog(nod,"evalNumeroPage",
"<html><p>Si le node \"page\" dans le fichier de l'étudiant est situé <br>"
+ "sur le même numéro de la pagination que ce node, <br>"
@ -34,6 +33,6 @@ public class actEvalNumeroPageOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNumeroPage.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalnumeropage.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointpourNumeroPageEtStructure;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalPasParagrapheVideOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalPasParagrapheVideOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePointpourNumeroPageEtStructure.showCustominputDialog(nod,"evalPasParagrapheVide",
"<html><p>Si ce node, dans le fichier de l'étudiant, ne contient pas <br>"
+ "de paragraphe vide <i>(Empty or blank)<i>, alors l'étudiant <br>"
@ -34,6 +33,6 @@ public class actEvalPasParagrapheVideOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalPasParagrapheVide.</p></html>",
new ImageIcon(create.class.getResource("/resources/evalpasparagraphevide.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalPiedPageActive extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalPiedPageActive extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalPiedPageActive",
"<html><p>Si ce node dans le fichier de l'étudiant ne contient pas le node<br>"
+ "<i>style:header-footer-properties</i> (pied de page désactivé),<br>"
@ -32,7 +31,7 @@ public class actEvalPiedPageActive extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalPiedPageActive</p></html>",
new ImageIcon(create.class.getResource("/resources/piedpageoui.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalPiedPagePasActive extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalPiedPagePasActive extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalPiedPagePasActive",
"<html><p>Si ce node dans le fichier de l'étudiant contient le node<br>"
+ "<i>style:header-footer-properties</i> (pied de page activé),<br>"
@ -32,7 +31,7 @@ public class actEvalPiedPagePasActive extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalPiedPagePasActive</p></html>",
new ImageIcon(create.class.getResource("/resources/piedpagenon.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,10 +6,9 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesEvalPlacement;
import cXML.node;
import list.listeDesNodesEvalPlacement;
public class actEvalPlacementEnfantNon extends AbstractAction{
{
@ -24,13 +23,13 @@ public class actEvalPlacementEnfantNon extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
for(int i =0 ; i < nod.getNodes().size(); i++) {
if(listeDesNodesEvalPlacement.isPlacement(nod.getNodes().get(i))) {
nod.getNodes().get(i).getAttributs().put("evalPlacement", "0");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -7,11 +7,10 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesEvalPlacement;
import cXML.node;
import list.listeDesNodesEvalPlacement;
public class actEvalPlacementEnfantOui extends AbstractAction{
{
@ -26,7 +25,7 @@ public class actEvalPlacementEnfantOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
if(nod.getAttributs().get("evalPlacement")!=null) {
point = Integer.valueOf(nod.getAttributs().get("evalPlacement"));
@ -36,8 +35,8 @@ public class actEvalPlacementEnfantOui extends AbstractAction{
try {
point = Integer.valueOf(a);
if(point<=0) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF SUPÉRIEUR à zéro.<br>Cependant,l'attribut <b>evalPlacement</b> a été supprimé.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF SUPÉRIEUR à zéro.<br>Cependant,l'attribut <b>evalPlacement</b> a été supprimé.</h2>");
for(int i =0 ; i < nod.getNodes().size(); i++) {
if(listeDesNodesEvalPlacement.isPlacement(nod.getNodes().get(i))) {
nod.getNodes().get(i).supprimeAttribut("evalPlacement");
@ -51,11 +50,11 @@ public class actEvalPlacementEnfantOui extends AbstractAction{
}
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un <b>nombre entier</b>.<br>L'attribut n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un <b>nombre entier</b>.<br>L'attribut n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointCaseCoche;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePointCaseCoche;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalPlacementParagrapheOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalPlacementParagrapheOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
String nameNode = "null";
String nodAvantContenu = "null";
node nodAvant = nod.retourneLeNodeFrereAvant();
@ -47,6 +46,6 @@ public class actEvalPlacementParagrapheOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalPlacement.</p></html>",
new ImageIcon(create.class.getResource("/resources/ordreparagraphe.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalSautPageColonneOui extends AbstractAction{
@ -24,13 +23,13 @@ public class actEvalSautPageColonneOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalSautPageColonne",
"<html><p>Si ce node contient un saut de page ou de colonne, <br>"
+ "alors l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalSautPageColonne</html>",
new ImageIcon(create.class.getResource("/resources/sautpagecolonne.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalTabAlignementGaucheOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalTabAlignementGaucheOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalTABAlignementAGauche",
"<html><p>Si ce node dans le fichier de l'étudiant ne contient pas le node<br>"
+ "<i>style:type</i> (alignement à gauche),<br>"
@ -32,7 +31,7 @@ public class actEvalTabAlignementGaucheOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalPiedPagePasActive</p></html>",
new ImageIcon(create.class.getResource("/resources/evaltabalgngauche.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalTabDefautStyleLeaderOui extends AbstractAction{
@ -24,7 +23,7 @@ public class actEvalTabDefautStyleLeaderOui extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalTABStyleLeaderDefault",
"<html><p>Si ce node dans le fichier de l'étudiant ne contient pas le node<br>"
+ "<i>style:leader-text</i> (remplissage des caractères par défaut),<br>"
@ -32,7 +31,7 @@ public class actEvalTabDefautStyleLeaderOui extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalTABStyleLeaderDefault</p></html>",
new ImageIcon(create.class.getResource("/resources/evaltabstyleleader.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalTextUserDefinedNon extends AbstractAction{
@ -23,9 +22,9 @@ public class actEvalTextUserDefinedNon extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalTextUserDefined");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,9 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePoint;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogSimplePoint;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalTextUserDefinedOui extends AbstractAction{
@ -25,13 +24,13 @@ public class actEvalTextUserDefinedOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogSimplePoint.showCustominputDialog(nod,"evalTextUserDefined",
"<html><p>Si ce node contient le texte de la propriété définie par l'utilisateur, <br>"
+ "alors l'étudiant obtiendra les points ci-dessous.</p><br>"
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalTextUserDefined</p></html>",
new ImageIcon(create.class.getResource("/resources/evaltextuserdefined.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
@ -12,8 +12,7 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvalueFalse extends AbstractAction{
@ -29,23 +28,23 @@ public class actEvalueFalse extends AbstractAction{
putValue( Action.SHORT_DESCRIPTION, "Ne pas évaluer ce node par l'application." );
}
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.evaluerFalse();
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
// fenetres.create.getTree().repaint();
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -11,10 +11,9 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeNodeFormatageDirectDeWriter;
import cXML.node;
import list.listeNodeFormatageDirectDeWriter;
public class actEvalueTrue extends AbstractAction{
@ -30,7 +29,7 @@ public class actEvalueTrue extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.evaluerTrue();
//Ajoute addmenu au node de niveau 1.
@ -65,17 +64,17 @@ public class actEvalueTrue extends AbstractAction{
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -9,11 +9,10 @@ import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.baseDonneesEvaluations;
import com.analyseWriter.fenetres.create;
import com.analyseWriter.fenetres.evaluate;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.baseDonneesEvaluations;
import analyseWriter.fenetres.create;
import analyseWriter.fenetres.evaluate;
public class actEvaluer extends AbstractAction{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -9,9 +9,8 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.CustomInputDialogActivateStyleDansLaStructure;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogActivateStyleDansLaStructure;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerATraversAnalyseStyleTrue extends AbstractAction{
@ -27,15 +26,15 @@ public class actEvaluerATraversAnalyseStyleTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogActivateStyleDansLaStructure.showCustominputDialog(nod);
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerLegacyStyleParentFalse extends AbstractAction{
@ -20,9 +19,9 @@ public class actEvaluerLegacyStyleParentFalse extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalLegacyStyleParentPresent");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -7,9 +7,8 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerLegacyStyleParentTrue extends AbstractAction{
@ -22,7 +21,7 @@ public class actEvaluerLegacyStyleParentTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
if(nod.getAttributs().get("evalLegacyStyleParentPresent")!=null) {
point = Integer.valueOf(nod.getAttributs().get("evalLegacyStyleParentPresent"));
@ -35,17 +34,17 @@ public class actEvaluerLegacyStyleParentTrue extends AbstractAction{
point = Integer.valueOf(a);
if(point<=0) {
nod.getAttributs().put("evalLegacyStyleParentPresent", String.valueOf(0));
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalNameLegacyStyle=0.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalNameLegacyStyle=0.</h2>");
}else {
nod.getAttributs().put("evalLegacyStyleParentPresent", String.valueOf(point));
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,10 +6,9 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesAnalyseStyle;
import cXML.node;
import list.listeDesNodesAnalyseStyle;
public class actEvaluerNomDuStyleHeriteTousLesNodesFalse extends AbstractAction{
{
@ -24,7 +23,7 @@ public class actEvaluerNomDuStyleHeriteTousLesNodesFalse extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(nod.getNomElt().equals("page")) {
supprimeAttribut(nod);
}
@ -35,7 +34,7 @@ public class actEvaluerNomDuStyleHeriteTousLesNodesFalse extends AbstractAction{
}
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
private void supprimeAttribut(node nodePage) {

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -7,11 +7,10 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesAnalyseStyle;
import cXML.node;
import list.listeDesNodesAnalyseStyle;
public class actEvaluerNomDuStyleHeriteTousLesNodesTrue extends AbstractAction{
{
@ -27,7 +26,7 @@ public class actEvaluerNomDuStyleHeriteTousLesNodesTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
String a = JOptionPane.showInputDialog(null,"Quel est le nombre de point?",point);
@ -37,8 +36,8 @@ public class actEvaluerNomDuStyleHeriteTousLesNodesTrue extends AbstractAction{
point = Integer.valueOf(a);
if(point<=0) {
nod.getAttributs().put("evalNameNode", String.valueOf(0));
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalNameLegacyStyle=0.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalNameLegacyStyle=0.</h2>");
}else {
String pointString = String.valueOf(point);
if(nod.getNomElt().equals("page")) {
@ -53,11 +52,11 @@ public class actEvaluerNomDuStyleHeriteTousLesNodesTrue extends AbstractAction{
}
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
private void ajouteAttribut(node nodePage, String pointString) {

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.util.regex.Matcher;
@ -8,10 +8,9 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.CustomInputDialogSimplePointCaseCoche;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.CustomInputDialogSimplePointCaseCoche;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerNomDuStyleHeriteTrue extends AbstractAction{
@ -27,7 +26,7 @@ public class actEvaluerNomDuStyleHeriteTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
String nameStyle = "";
String texteInsert ="";
@ -57,7 +56,7 @@ public class actEvaluerNomDuStyleHeriteTrue extends AbstractAction{
+ "<p>Cliquez sur le bouton supprimer pour retirer la méthode<br>"
+ "d'évaluation evalNameLegacyStyle.</p></html>",
new ImageIcon(create.class.getResource("/resources/heritagestyle.png")));
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -9,11 +9,10 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesAnalyseStyle;
import cXML.node;
import list.listeDesNodesAnalyseStyle;
public class actEvaluerStyleTousLesNodesTrue extends AbstractAction{
@ -25,7 +24,7 @@ public class actEvaluerStyleTousLesNodesTrue extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(nod.getNomElt().equals("structurepage")) {
for(int i = 0 ; i < nod.getNodes().size(); i++) {
@ -36,17 +35,17 @@ public class actEvaluerStyleTousLesNodesTrue extends AbstractAction{
}
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,12 +6,11 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesAnalyseStyle;
import analyseWriter.list.listeNodeFormatageDirectDeWriter;
import cXML.node;
import list.listeDesNodesAnalyseStyle;
import list.listeNodeFormatageDirectDeWriter;
public class actEvaluerStyleTouslesNodesFalse extends AbstractAction{
@ -23,7 +22,7 @@ public class actEvaluerStyleTouslesNodesFalse extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(nod.getNomElt().equals("structurepage")) {
for(int i = 0 ; i < nod.getNodes().size();i++) {
if(nod.getNodes().get(i).getNomElt().equals("page")) {
@ -33,7 +32,7 @@ public class actEvaluerStyleTouslesNodesFalse extends AbstractAction{
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -9,9 +9,8 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.CustomInputDialogActivateStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.CustomInputDialogActivateStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerStyleTrue extends AbstractAction{
@ -27,15 +26,15 @@ public class actEvaluerStyleTrue extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
CustomInputDialogActivateStyle.showCustominputDialog(nod);
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerTousEnfantsFalse extends AbstractAction{
@ -24,10 +23,10 @@ public class actEvaluerTousEnfantsFalse extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(!nod.getNomElt().equals("fichier")) {
nod.evaluerAllChildFalse();
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -9,8 +9,7 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerTousEnfantsTrue extends AbstractAction{
@ -27,27 +26,27 @@ public class actEvaluerTousEnfantsTrue extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(!nod.getNomElt().equals("fichier")) {
//Evalue tous les childs et place addmenu=true pour les level=1.
nod.evaluerTrue();
nod.evaluerAllChildTrue();
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -10,9 +10,8 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerTousLesStylesParagraphesFalse extends AbstractAction{
@ -28,8 +27,8 @@ public class actEvaluerTousLesStylesParagraphesFalse extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
boolean retire =false;
@ -59,14 +58,14 @@ public class actEvaluerTousLesStylesParagraphesFalse extends AbstractAction{
}
}
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTree().repaint();
analyseWriter.fenetres.create.getTree().repaint();
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -9,9 +9,8 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.create;
import cXML.node;
public class actEvaluerTousLesStylesParagraphesTrue extends AbstractAction{
@ -27,8 +26,8 @@ public class actEvaluerTousLesStylesParagraphesTrue extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
for(int i =0 ; i < nod.getNodes().size(); i++) {
@ -49,14 +48,14 @@ public class actEvaluerTousLesStylesParagraphesTrue extends AbstractAction{
}
}
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
com.analyseWriter.fenetres.create.getTree().repaint();
analyseWriter.fenetres.create.getTree().repaint();
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
@ -14,11 +14,10 @@ import javax.swing.JPanel;
import javax.swing.KeyStroke;
import javax.swing.SwingUtilities;
import com.analyseWriter.fenetres.baseDonneesEvaluations;
import com.analyseWriter.fenetres.create;
import com.analyseWriter.fenetres.evaluate;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.baseDonneesEvaluations;
import analyseWriter.fenetres.create;
import analyseWriter.fenetres.evaluate;
public class actExit extends AbstractAction {

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,7 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
public class actExpandAll extends AbstractAction{
@ -21,7 +21,7 @@ public class actExpandAll extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
com.analyseWriter.fenetres.create.expandAll();
analyseWriter.fenetres.create.expandAll();
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,7 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
public class actExpandNode extends AbstractAction{
@ -21,7 +21,7 @@ public class actExpandNode extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
com.analyseWriter.fenetres.create.expandNode(com.analyseWriter.fenetres.create.getSelectNode());
analyseWriter.fenetres.create.expandNode(analyseWriter.fenetres.create.getSelectNode());
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actInsereInformationFalse extends AbstractAction{
@ -23,9 +22,9 @@ public class actInsereInformationFalse extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().remove("information");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actInsereInformationMultipleFalse extends AbstractAction{
@ -23,11 +22,11 @@ public class actInsereInformationMultipleFalse extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).getAttributs().remove("information");
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,10 +6,9 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesInfos;
import cXML.node;
import list.listeDesNodesInfos;
public class actInsereInformationMultipleTrue extends AbstractAction{
{
@ -24,7 +23,7 @@ public class actInsereInformationMultipleTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
for(int i = 0 ; i < nod.getNodes().size();i++) {
if(listeDesNodesInfos.isInfo(nod.getNodes().get(i))) {
@ -36,7 +35,7 @@ public class actInsereInformationMultipleTrue extends AbstractAction{
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,10 +6,9 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import analyseWriter.list.listeDesNodesInfos;
import cXML.node;
import list.listeDesNodesInfos;
public class actInsereInformationTrue extends AbstractAction{
{
@ -24,14 +23,14 @@ public class actInsereInformationTrue extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
if(listeDesNodesInfos.isInfo(nod)) {
String content = nod.retourneLesContenusEnfants("");
if(!content.isEmpty()) if(content.replaceAll(" ", "").length()==0) content=content.replaceAll(" ", "");
if(content.length()>300) content = content.substring(0, 299);
content = nod.getNomElt() + " : " + content;
nod.getAttributs().put("information", content);
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.io.IOException;

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actNameNodeEnfantsNon extends AbstractAction{
@ -23,10 +22,10 @@ public class actNameNodeEnfantsNon extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).supprimeAttribut("evalNameNode");
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -7,9 +7,8 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.JOptionPane;
import com.analyseWriter.fenetres.baliseStyle;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.baliseStyle;
import analyseWriter.fenetres.create;
import cXML.node;
public class actNameNodeEnfantsOui extends AbstractAction{
@ -25,7 +24,7 @@ public class actNameNodeEnfantsOui extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
int point = 0;
if(nod.getAttributs().get("evalNameNode")!=null) {
point = Integer.valueOf(nod.getAttributs().get("evalNameNode"));
@ -40,19 +39,19 @@ public class actNameNodeEnfantsOui extends AbstractAction{
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).getAttributs().put("evalNameNode", String.valueOf(0));
}
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalNameNode=0.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier POSITIF supérieur à zéro.<br>Cependant,la valeur a été modifiée.<br>evalNameNode=0.</h2>");
}else {
for(int i = 0 ; i < nod.getNodes().size();i++) {
nod.getNodes().get(i).getAttributs().put("evalNameNode", String.valueOf(point));
}
}
} catch (Exception e2) {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
analyseWriter.fenetres.create.getTextNodeSelect().setText(baliseStyle.balise());
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h2>Erreur la valeur doit être un nombre entier.<br>L'attribut n'a pas été modifiée.</h2>");
}
}
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.Component;
import java.awt.HeadlessException;
@ -24,12 +24,11 @@ import javax.xml.parsers.ParserConfigurationException;
import org.xml.sax.SAXException;
import com.analyseWriter.fenetres.evaluate;
import MEPTL.commandes;
import MEPTL.ecritureSujet;
import MEPTL.meptl;
import MEPTL.verificationFichierAnalyse_node_commandesSujet;
import analyseWriter.MEPTL.commandes;
import analyseWriter.MEPTL.ecritureSujet;
import analyseWriter.MEPTL.meptl;
import analyseWriter.MEPTL.verificationFichierAnalyse_node_commandesSujet;
import analyseWriter.fenetres.evaluate;
import cXML.Run;
import cXML.node;
@ -133,12 +132,12 @@ public class actNewFichierAnalyse extends AbstractAction{
commandes.initialiseParametresEvaluation();
commandes.initialiseParametresSettingProprietes();
com.analyseWriter.fenetres.create.getTree().setVisible(true);
com.analyseWriter.fenetres.create.constructionTree();
com.analyseWriter.fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
analyseWriter.fenetres.create.getTree().setVisible(true);
analyseWriter.fenetres.create.constructionTree();
analyseWriter.fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
}else {
com.analyseWriter.fenetres.create.getTextNodeSelect().setText("<h1>Le fichier n'est pas valide</h1>");
analyseWriter.fenetres.create.getTextNodeSelect().setText("<h1>Le fichier n'est pas valide</h1>");
}
} catch (ParserConfigurationException | SAXException | IOException | CloneNotSupportedException e1) {
@ -146,7 +145,7 @@ public class actNewFichierAnalyse extends AbstractAction{
}
} else {
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(null);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(null);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,8 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import com.analyseWriter.fenetres.proprieteFichierAnalyse;
import analyseWriter.fenetres.create;
import analyseWriter.fenetres.proprieteFichierAnalyse;
public class actNodeFichier extends AbstractAction{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
@ -9,10 +9,9 @@ import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import com.analyseWriter.fenetres.ChargeFichierXML;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import analyseWriter.fenetres.ChargeFichierXML;
import analyseWriter.fenetres.create;
public class actOpen extends AbstractAction{
@ -31,15 +30,15 @@ public class actOpen extends AbstractAction{
public void actionPerformed(ActionEvent e) {
new ChargeFichierXML();
if(commandes.fichierAnalyseValide) {
com.analyseWriter.fenetres.create.getTree().setVisible(true);
com.analyseWriter.fenetres.create.constructionTree();
com.analyseWriter.fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
analyseWriter.fenetres.create.getTree().setVisible(true);
analyseWriter.fenetres.create.constructionTree();
analyseWriter.fenetres.create.getTextNodeSelect().afficheChargementFichierAnalyse();
// fenetres.create.getTglbtnTousLesNodes().setSelected(false);
com.analyseWriter.fenetres.create.getButtonEvaluate().setEnabled(true);
analyseWriter.fenetres.create.getButtonEvaluate().setEnabled(true);
}else {
// fenetres.create.constructionTree();
com.analyseWriter.fenetres.create.getTextNodeSelect().setContentType("text/plain");
com.analyseWriter.fenetres.create.getTextNodeSelect().setText(commandes.message.toString());
analyseWriter.fenetres.create.getTextNodeSelect().setContentType("text/plain");
analyseWriter.fenetres.create.getTextNodeSelect().setText(commandes.message.toString());
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.text.ParseException;
@ -7,11 +7,10 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.baseDonneesEvaluations;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import baseEvaluations.recupeNodeBaseEvaluations;
import analyseWriter.MEPTL.commandes;
import analyseWriter.baseEvaluations.recupeNodeBaseEvaluations;
import analyseWriter.fenetres.baseDonneesEvaluations;
import analyseWriter.fenetres.create;
import cXML.node;
public class actOpenBaseEvaluation extends AbstractAction{
@ -41,7 +40,7 @@ public class actOpenBaseEvaluation extends AbstractAction{
commandes.evaluationsBase = new node();
commandes.evaluationsBase.setNomElt("evaluations");
try {
commandes.evaluationsBase.getAttributs().put("date", calcul.formatDateWriter.dateTodayLibreOffice());
commandes.evaluationsBase.getAttributs().put("date", analyseWriter.calcul.formatDateWriter.dateTodayLibreOffice());
} catch (ParseException e) {
e.printStackTrace();
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,11 +6,10 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.baseDonneesListesEtudiants;
import com.analyseWriter.fenetres.create;
import MEPTL.commandes;
import baseListesEtudiants.recupeNodeBaseListesEtudiants;
import analyseWriter.MEPTL.commandes;
import analyseWriter.baseListesEtudiants.recupeNodeBaseListesEtudiants;
import analyseWriter.fenetres.baseDonneesListesEtudiants;
import analyseWriter.fenetres.create;
public class actOpenBaseListesEtudiants extends AbstractAction{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -23,10 +23,10 @@ public class actOu extends AbstractAction{
@Override
public void actionPerformed(ActionEvent e) {
// TODO Auto-generated method stub
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
DefaultMutableTreeNode nodMu = com.analyseWriter.fenetres.create.getSelectNode();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
DefaultMutableTreeNode nodMu = analyseWriter.fenetres.create.getSelectNode();
node nodeOu = new node();
nodeOu.setNomElt("OU");
@ -39,12 +39,12 @@ public class actOu extends AbstractAction{
DefaultMutableTreeNode node1 = new DefaultMutableTreeNode(nodeOu);
nodMu.add(node1);
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.Toolkit;
import java.awt.datatransfer.Clipboard;
@ -18,7 +18,7 @@ import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
import MEPTL.commandes;
import analyseWriter.MEPTL.commandes;
import cXML.node;
@ -47,10 +47,10 @@ public class actPaste extends AbstractAction{
node nodCopy = new node(paste);
if(!nodCopy.getNomElt().isEmpty()) {
TreePath path = com.analyseWriter.fenetres.create.getTree().getSelectionPath();
TreePath path = analyseWriter.fenetres.create.getTree().getSelectionPath();
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
DefaultMutableTreeNode nodeMu = com.analyseWriter.fenetres.create.getSelectNode();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
DefaultMutableTreeNode nodeMu = analyseWriter.fenetres.create.getSelectNode();
MiseInformationDansLeNodeCopierColler(nodCopy,nod);
nod.getNodes().add(nodCopy);
@ -64,12 +64,12 @@ public class actPaste extends AbstractAction{
nodeMu = addNodeMutable(nodCopy,node1);
DefaultTreeModel model = (DefaultTreeModel) com.analyseWriter.fenetres.create.getTree().getModel();
DefaultTreeModel model = (DefaultTreeModel) analyseWriter.fenetres.create.getTree().getModel();
DefaultMutableTreeNode root = (DefaultMutableTreeNode) model.getRoot();
model.reload(root);
com.analyseWriter.fenetres.create.getTree().setSelectionPath(path);
com.analyseWriter.fenetres.create.getTree().expandPath(path);
analyseWriter.fenetres.create.getTree().setSelectionPath(path);
analyseWriter.fenetres.create.getTree().expandPath(path);
}else {
JOptionPane.showMessageDialog(null, "Le collage n'est pas réalisé.");

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
@ -7,9 +7,9 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.ChargePathBaseEvaluation;
import com.analyseWriter.fenetres.baseDonneesEvaluations;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.ChargePathBaseEvaluation;
import analyseWriter.fenetres.baseDonneesEvaluations;
import analyseWriter.fenetres.create;
public class actPathBaseEvaluations extends AbstractAction{
{

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actRechercheAnchorPageNumberFalse extends AbstractAction{
@ -23,9 +22,9 @@ public class actRechercheAnchorPageNumberFalse extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().put("recherche_anchor-page-number", "false");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actRechercheAnchorPageNumberTrue extends AbstractAction{
@ -23,9 +22,9 @@ public class actRechercheAnchorPageNumberTrue extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().put("recherche_anchor-page-number", "true");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

View File

@ -1,4 +1,4 @@
package action;
package analyseWriter.action;
import java.awt.event.ActionEvent;
@ -6,8 +6,7 @@ import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import com.analyseWriter.fenetres.create;
import analyseWriter.fenetres.create;
import cXML.node;
public class actRechercheContenuPlusProcheVoisinfalse extends AbstractAction{
@ -23,9 +22,9 @@ public class actRechercheContenuPlusProcheVoisinfalse extends AbstractAction{
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) com.analyseWriter.fenetres.create.getSelectNode().getUserObject();
node nod = (node) analyseWriter.fenetres.create.getSelectNode().getUserObject();
nod.getAttributs().put("recherche_contenu_plus_proche_voisin", "false");
com.analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
analyseWriter.fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}

Some files were not shown because too many files have changed in this diff Show More