Accélartion evaluer un node SHIFT+E
This commit is contained in:
pablo rodriguez 2024-04-06 15:43:02 +02:00
parent 667714b4a7
commit aecbe59c1c
4 changed files with 5 additions and 5 deletions

Binary file not shown.

Binary file not shown.

View File

@ -23,10 +23,10 @@ public class actEvalueTrue extends AbstractAction{
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
{ {
putValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, InputEvent.ALT_DOWN_MASK)); putValue( Action.NAME, "Evaluer true" );
putValue( Action.NAME, "Evaluer true" ); putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertruemini.png")) );
putValue( Action.SMALL_ICON, new ImageIcon(create.class.getResource("/resources/evaluertruemini.png")) ); putValue( Action.SHORT_DESCRIPTION, "Evaluer ce node (SHIFT+E)" );
putValue( Action.SHORT_DESCRIPTION, "Evaluer ce node par l'application" ); putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.SHIFT_DOWN_MASK) );
} }
@Override @Override
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {

View File

@ -22,7 +22,7 @@ public class actEvaluer extends AbstractAction{
putValue( Action.NAME, "Evaluer" ); putValue( Action.NAME, "Evaluer" );
putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/resources/evaluate.png") ) ); putValue( Action.SMALL_ICON, new ImageIcon( getClass().getResource("/resources/evaluate.png") ) );
putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E ); putValue( Action.MNEMONIC_KEY, KeyEvent.VK_E );
putValue( Action.SHORT_DESCRIPTION, "Evaluer un node (CTRL+E)" ); putValue( Action.SHORT_DESCRIPTION, "Evaluer des étudiants à partir du fichier d'analyse (CTRL+E)" );
putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) ); putValue( Action.ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_E, KeyEvent.CTRL_DOWN_MASK) );
} }
@Override @Override