2022-06-27 11:51:38 +02:00
|
|
|
package fenetres.create_act;
|
|
|
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
|
|
|
|
import javax.swing.AbstractAction;
|
|
|
|
import javax.swing.Action;
|
2022-12-12 11:49:47 +01:00
|
|
|
import javax.swing.ImageIcon;
|
2022-06-27 11:51:38 +02:00
|
|
|
|
|
|
|
import cXML.node;
|
2022-12-12 11:49:47 +01:00
|
|
|
import fenetres.create;
|
2022-06-27 11:51:38 +02:00
|
|
|
|
|
|
|
public class actEvalEntetePasActiveNon extends AbstractAction{
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
{
|
|
|
|
putValue( Action.NAME, "Supprime evaluation entête pas active" );
|
2022-12-12 11:49:47 +01:00
|
|
|
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation de l'absence d'attribut du node." );
|
|
|
|
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
|
2022-06-27 11:51:38 +02:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
|
|
|
node nod = (node) fenetres.create.getSelectNode().getUserObject();
|
|
|
|
nod.supprimeAttribut("evalEntetePasActive");
|
|
|
|
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|