analyseWriter/src/fenetres/create_act/actEvalFirstChildFalse.java

34 lines
993 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;
import list.listeDesNodesEvalPlacement;
public class actEvalFirstChildFalse extends AbstractAction{
{
putValue( Action.NAME, "Supprimer évaluer le node est le premier enfant." );
putValue( Action.SHORT_DESCRIPTION, "Supprime l'évaluation du premier enfant." );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/falsemini.png")));
}
/**
*
*/
private static final long serialVersionUID = 1L;
@Override
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
if(listeDesNodesEvalPlacement.isPlacement(nod)) {
nod.getAttributs().put("evalFirstChild", "0");
}
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
}
}