2023-02-05 17:46:02 +01:00
|
|
|
package action;
|
2022-06-19 21:01:30 +02:00
|
|
|
|
|
|
|
import java.awt.event.ActionEvent;
|
|
|
|
import java.awt.event.KeyEvent;
|
|
|
|
|
|
|
|
import javax.swing.AbstractAction;
|
|
|
|
import javax.swing.Action;
|
|
|
|
import javax.swing.ImageIcon;
|
|
|
|
import javax.swing.KeyStroke;
|
|
|
|
|
|
|
|
import fenetres.create;
|
|
|
|
import fenetres.evaluate;
|
|
|
|
|
|
|
|
public class actEvaluer extends AbstractAction{
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
{
|
|
|
|
putValue( Action.NAME, "Evaluer" );
|
2022-12-08 21:35:00 +01:00
|
|
|
putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/resources/evaluate.png") ) );
|
2022-06-19 21:01:30 +02:00
|
|
|
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E );
|
|
|
|
putValue( Action.SHORT_DESCRIPTION, "Evaluer un node (CTRL+E)" );
|
|
|
|
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) );
|
|
|
|
}
|
|
|
|
@Override
|
|
|
|
public void actionPerformed(ActionEvent e) {
|
2022-12-10 11:16:34 +01:00
|
|
|
evaluate.getInstance();
|
2022-06-19 21:01:30 +02:00
|
|
|
create.getInstance().dispose();
|
2023-02-18 18:05:42 +01:00
|
|
|
create.isDispose=true;
|
2022-06-19 21:01:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|