analyseWriter/src/fenetres/create_act/actEvalueFalse.java

35 lines
1.1 KiB
Java
Raw Normal View History

2022-06-19 21:01:30 +02:00
package fenetres.create_act;
import java.awt.event.ActionEvent;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.ImageIcon;
import javax.swing.KeyStroke;
import cXML.node;
import fenetres.create;
public class actEvalueFalse extends AbstractAction{
/**
*
*/
private static final long serialVersionUID = 1L;
{
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));
putValue( Action.NAME, "Evaluer false" );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluerfalsemini.png")) );
putValue( Action.SHORT_DESCRIPTION, "Ne pas évaluer ce node par l'application." );
}
public void actionPerformed(ActionEvent e) {
node nod = (node) fenetres.create.getSelectNode().getUserObject();
nod.evaluerFalse();
fenetres.create.getTextNodeSelect().refreshAffichage(nod);
2022-11-13 08:58:51 +01:00
fenetres.create.getTree().repaint();
2022-06-19 21:01:30 +02:00
}
}