analyseWriter/src/fenetres/create_act/actEvalEntetePasActiveNon.java

31 lines
897 B
Java
Raw Normal View History

package fenetres.create_act;
import java.awt.event.ActionEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import cXML.node;
import fenetres.create;
public class actEvalEntetePasActiveNon extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue( Action.NAME, "Supprime evaluation entête pas active" );
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")));
}
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
nod.supprimeAttribut("evalEntetePasActive");
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}