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;
|
|
|
|
|
2023-04-04 14:29:25 +02:00
|
|
|
import fenetres.baseDonneesEvaluations;
|
2022-06-19 21:01:30 +02:00
|
|
|
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();
|
2023-04-04 14:29:25 +02:00
|
|
|
if(!baseDonneesEvaluations.isDispose) baseDonneesEvaluations.ferme();
|
|
|
|
create.fermeCreate();
|
2022-06-19 21:01:30 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|