V4.4.3
Amélioration sur la vérification. Notamment sur les copiés et les collés.
This commit is contained in:
parent
d3c7129955
commit
57744226c7
@ -2,7 +2,7 @@
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="icons"/>
|
||||
<classpathentry kind="src" path="documentation"/>
|
||||
<classpathentry kind="src" path="Menu"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
|
140
Menu/menucontextuel/CreatePopupMenu.java
Normal file
140
Menu/menucontextuel/CreatePopupMenu.java
Normal file
@ -0,0 +1,140 @@
|
||||
package menucontextuel;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenu;
|
||||
import javax.swing.JPopupMenu;
|
||||
|
||||
import action.actAttribut;
|
||||
import action.actCoefficient;
|
||||
import action.actCopy;
|
||||
import action.actDeleteNode;
|
||||
import action.actOu;
|
||||
import action.actPaste;
|
||||
import cXML.node;
|
||||
import fenetres.create;
|
||||
import list.listeDesNodesAEvaluer;
|
||||
import list.listeDesNodesAllContent;
|
||||
import list.listeDesNodesAvecOU;
|
||||
import list.listeDesNodesContientEnfant;
|
||||
import list.listeDesNodesPourEvaluationEntetePage;
|
||||
import list.listeDesNodesPourEvaluerPage;
|
||||
import list.listeDesNodesPourEvaluerPiedDePage;
|
||||
import list.listeDesNodesRechercheByContenu;
|
||||
import list.listeEvalNameNode;
|
||||
import list.listeRechercheParAnchorPageNumber;
|
||||
import sousmenuArbre.mnArbre;
|
||||
import sousmenuEvaluation.mnEvaluer;
|
||||
|
||||
/**
|
||||
* Le menu contextuel des nodes dans le tree.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class CreatePopupMenu extends JPopupMenu {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* Création de la popupmenu.</br>
|
||||
* @param nod
|
||||
*/
|
||||
public CreatePopupMenu(node nod) {
|
||||
|
||||
if(nod!=null) {
|
||||
|
||||
|
||||
//**************************************************************
|
||||
//** La popupMenu qui s'affiche sur le tree pour les niveau 1 **
|
||||
//**************************************************************
|
||||
JPopupMenu mnPopupTree = new JPopupMenu();
|
||||
mnPopupTree.add( mnEvaluer.menu());
|
||||
if(nod.getLevel()==1 ) {
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(new actCoefficient());
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(MnGroupePourFeedbackNiveau1.menu(nod));
|
||||
if(nod.getNomElt().equals("structurepage")) {
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add( MnGroupeMethodeEvaluer.menu(nod));
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(MnGroupeMethodeEvaluerMultiple.menu(nod));
|
||||
}
|
||||
}
|
||||
|
||||
//********************************************
|
||||
//** Pour les nodes de niveau supérieur à 1 **
|
||||
//********************************************
|
||||
if(nod.getLevel()>1 ) {
|
||||
|
||||
// Le groupe représentation dans le feedback
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(MnGroupePourFeedback.menu(nod));
|
||||
|
||||
// Le groupe méthode de recherche
|
||||
if(listeDesNodesRechercheByContenu.isRechercheByContenu(nod)||listeRechercheParAnchorPageNumber.isRechercheParAnchorPageNumber(nod)) {
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(mnGroupeRechercheContenu.menu(nod));
|
||||
}
|
||||
|
||||
|
||||
// Le groupe méthode évaluer le node
|
||||
if(listeEvalNameNode.isNodeEvalNameNode(nod)||listeDesNodesAllContent.isAllContent(nod)||
|
||||
listeDesNodesPourEvaluationEntetePage.isEntete(nod) || listeDesNodesPourEvaluerPiedDePage.isPiedDePage(nod)||
|
||||
listeDesNodesPourEvaluerPage.isPage(nod) || listeDesNodesAEvaluer.isAEvaluer(nod)) {
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(MnGroupeMethodeEvaluer.menu(nod));
|
||||
}
|
||||
|
||||
// Le groupe méthode évaluer les nodes enfants
|
||||
if(listeDesNodesContientEnfant.isContientEnfant(nod) && nod.getNodes().size()>0) {
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(MnGroupeMethodeEvaluerMultiple.menu(nod));
|
||||
}
|
||||
|
||||
// Le groupe accès aux attributs
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(new actAttribut());
|
||||
|
||||
// Le OU
|
||||
if(listeDesNodesAvecOU.isOU(nod)) {
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(mnOu());
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
// Le groupe Arbre
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(mnArbre.menu());
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(new actCopy());
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(new actPaste());
|
||||
mnPopupTree.addSeparator();
|
||||
mnPopupTree.add(new actDeleteNode());
|
||||
|
||||
|
||||
//*************************************
|
||||
//** Applique le popMenu sur la tree **
|
||||
//*************************************
|
||||
create.getTree().setComponentPopupMenu(mnPopupTree);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Menu permettant insérer le node OU.</br>
|
||||
* Uniquement accésible pour les nodes avec recherche par contenu.</br>
|
||||
* @return
|
||||
*/
|
||||
private JMenu mnOu() {
|
||||
JMenu mnOu = new JMenu("Insérer un node OU");
|
||||
mnOu.setIcon(new ImageIcon(create.class.getResource("/resources/oumini.png")));
|
||||
mnOu.add( new actOu());
|
||||
return mnOu;
|
||||
}
|
||||
|
||||
|
||||
}
|
42
Menu/menucontextuel/mnGroupeRechercheContenu.java
Normal file
42
Menu/menucontextuel/mnGroupeRechercheContenu.java
Normal file
@ -0,0 +1,42 @@
|
||||
package menucontextuel;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenu;
|
||||
|
||||
import cXML.node;
|
||||
import fenetres.create;
|
||||
import list.listeDesNodesRechercheByContenu;
|
||||
import list.listeRechercheParAnchorPageNumber;
|
||||
import sousmenuRecherche.mnRechercheContenuExact;
|
||||
import sousmenuRecherche.mnRechercheContenuPlusProcheVoisin;
|
||||
import sousmenuRecherche.mnRechercheIndex;
|
||||
import sousmenuRecherche.mnRechercheParNumeroPageAncrer;
|
||||
|
||||
/**
|
||||
* Menu regroupant les menus permettant de recherche un node par son contenu textuel.</br>
|
||||
* Ce menu apparaît uniquement pour les node de la liste recherche par contenu.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class mnGroupeRechercheContenu {
|
||||
public static JMenu menu(node nod) {
|
||||
JMenu mnGroupeRechercheContenu = new JMenu("Recherche le node");
|
||||
mnGroupeRechercheContenu.setIcon( new ImageIcon(create.class.getResource("/resources/recherchemini.png")));
|
||||
|
||||
if(listeDesNodesRechercheByContenu.isRechercheByContenu(nod)) {
|
||||
if(nod.retourneLesContenusEnfants("").length()>0) {
|
||||
mnGroupeRechercheContenu.add(mnRechercheContenuExact.menu());
|
||||
mnGroupeRechercheContenu.addSeparator();
|
||||
mnGroupeRechercheContenu.add(mnRechercheContenuPlusProcheVoisin.menu());
|
||||
}
|
||||
mnGroupeRechercheContenu.addSeparator();
|
||||
mnGroupeRechercheContenu.add(mnRechercheIndex.menu());
|
||||
}
|
||||
if(listeRechercheParAnchorPageNumber.isRechercheParAnchorPageNumber(nod)) {
|
||||
mnGroupeRechercheContenu.addSeparator();
|
||||
mnGroupeRechercheContenu.add(mnRechercheParNumeroPageAncrer.menu());
|
||||
}
|
||||
|
||||
return mnGroupeRechercheContenu;
|
||||
}
|
||||
}
|
30
Menu/sousmenuArbre/mnArbre.java
Normal file
30
Menu/sousmenuArbre/mnArbre.java
Normal file
@ -0,0 +1,30 @@
|
||||
package sousmenuArbre;
|
||||
|
||||
import javax.swing.JMenu;
|
||||
|
||||
import action.actCollapseAll;
|
||||
import action.actCollapseNode;
|
||||
import action.actDownNode;
|
||||
import action.actExpandAll;
|
||||
import action.actExpandNode;
|
||||
import action.actUpNode;
|
||||
|
||||
/**
|
||||
* Menu Arbre.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class mnArbre {
|
||||
public static JMenu menu() {
|
||||
JMenu mnManageTree = new JMenu("Arbre");
|
||||
mnManageTree.add(new actUpNode());
|
||||
mnManageTree.add(new actDownNode());
|
||||
mnManageTree.addSeparator();
|
||||
mnManageTree.add(new actExpandAll());
|
||||
mnManageTree.add(new actExpandNode());
|
||||
mnManageTree.addSeparator();
|
||||
mnManageTree.add(new actCollapseAll());
|
||||
mnManageTree.add(new actCollapseNode());
|
||||
return mnManageTree;
|
||||
}
|
||||
}
|
24
Menu/sousmenuRecherche/mnRechercheContenuExact.java
Normal file
24
Menu/sousmenuRecherche/mnRechercheContenuExact.java
Normal file
@ -0,0 +1,24 @@
|
||||
package sousmenuRecherche;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenu;
|
||||
|
||||
import action.actRechercheContenufalse;
|
||||
import action.actRechercheContenutrue;
|
||||
import fenetres.create;
|
||||
|
||||
/**
|
||||
* Menu rechercher par le contenu exact.</br>
|
||||
* Ignore la case et les epaces avant et après.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class mnRechercheContenuExact {
|
||||
public static JMenu menu(){
|
||||
JMenu mnRechercheContenu = new JMenu("Recherche par le contenu exact");
|
||||
mnRechercheContenu.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenumini.png")));
|
||||
mnRechercheContenu.add( new actRechercheContenutrue());
|
||||
mnRechercheContenu.add( new actRechercheContenufalse());
|
||||
return mnRechercheContenu;
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
package sousmenuRecherche;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenu;
|
||||
|
||||
import action.actRechercheContenuPlusProcheVoisinfalse;
|
||||
import action.actRechercheContenuPlusProcheVoisintrue;
|
||||
import fenetres.create;
|
||||
|
||||
/**
|
||||
* Menu rechercher par le contenu du plus proche voisin.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class mnRechercheContenuPlusProcheVoisin {
|
||||
public static JMenu menu(){
|
||||
JMenu mnRechercheContenuPlusProcheVoisin2 = new JMenu("Recherche par le plus proche voisin");
|
||||
mnRechercheContenuPlusProcheVoisin2.setIcon(new ImageIcon(create.class.getResource("/resources/recherchecontenuplusprochevoisinmini.png")));
|
||||
mnRechercheContenuPlusProcheVoisin2.add( new actRechercheContenuPlusProcheVoisintrue());
|
||||
mnRechercheContenuPlusProcheVoisin2.add(new actRechercheContenuPlusProcheVoisinfalse());
|
||||
return mnRechercheContenuPlusProcheVoisin2;
|
||||
}
|
||||
}
|
23
Menu/sousmenuRecherche/mnRechercheIndex.java
Normal file
23
Menu/sousmenuRecherche/mnRechercheIndex.java
Normal file
@ -0,0 +1,23 @@
|
||||
package sousmenuRecherche;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenu;
|
||||
|
||||
import action.actRechercheIndexfalse;
|
||||
import action.actRechercheIndextrue;
|
||||
import fenetres.create;
|
||||
|
||||
/**
|
||||
* Menu rechercher par l'index.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class mnRechercheIndex {
|
||||
public static JMenu menu(){
|
||||
JMenu mnRechercheIndex = new JMenu("Recherche par l'index");
|
||||
mnRechercheIndex.setIcon(new ImageIcon(create.class.getResource("/resources/rechercheindexmini.png")));
|
||||
mnRechercheIndex.add( new actRechercheIndextrue()) ;
|
||||
mnRechercheIndex.add(new actRechercheIndexfalse());
|
||||
return mnRechercheIndex;
|
||||
}
|
||||
}
|
25
Menu/sousmenuRecherche/mnRechercheParNumeroPageAncrer.java
Normal file
25
Menu/sousmenuRecherche/mnRechercheParNumeroPageAncrer.java
Normal file
@ -0,0 +1,25 @@
|
||||
package sousmenuRecherche;
|
||||
|
||||
import javax.swing.ImageIcon;
|
||||
import javax.swing.JMenu;
|
||||
|
||||
import action.actRechercheAnchorPageNumberFalse;
|
||||
import action.actRechercheAnchorPageNumberTrue;
|
||||
import fenetres.create;
|
||||
|
||||
/**
|
||||
* Menu rechercher par le numéro de la page ancrer.</br>
|
||||
* Ce menu est utilisé pour les frames.</br>
|
||||
* @author pabr6
|
||||
*
|
||||
*/
|
||||
public class mnRechercheParNumeroPageAncrer {
|
||||
public static JMenu menu(){
|
||||
JMenu mnRechercheParNumeroPageAncrer = new JMenu("Recherche par le numéro de la page");
|
||||
mnRechercheParNumeroPageAncrer.setIcon(new ImageIcon(create.class.getResource("/resources/rechercheancragepagemini.png")));
|
||||
mnRechercheParNumeroPageAncrer.add( new actRechercheAnchorPageNumberTrue());
|
||||
mnRechercheParNumeroPageAncrer.addSeparator();
|
||||
mnRechercheParNumeroPageAncrer.add( new actRechercheAnchorPageNumberFalse());
|
||||
return mnRechercheParNumeroPageAncrer;
|
||||
}
|
||||
}
|
Binary file not shown.
Binary file not shown.
9
bin/.gitignore
vendored
9
bin/.gitignore
vendored
@ -1,3 +1,8 @@
|
||||
/MEPTL/
|
||||
/fenetres/
|
||||
/calcul/
|
||||
/list/
|
||||
/menucontextuel/
|
||||
/sousmenuArbre/
|
||||
/sousmenuEvaluation/
|
||||
/sousmenuRecherche/
|
||||
/sousmenuRepresentation/
|
||||
/MEPTL/
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user