1 | class ChangeAllAction extends AbstractAction {↵ | | 1 | class IgnoreAction extends AbstractAction {↵
|
|
2 | private ChangeAllAction() {↵ | | 2 | private IgnoreAction() {↵
|
|
3 | super("Change All");↵ | | 3 | super("Ignore");↵
|
|
4 | putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_L));↵ | | 4 | putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_I));↵
|
|
5 | putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_L));↵ | | 5 | putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_I));↵
|
|
6 | }↵ | | 6 | }↵
|
|
7 | public void actionPerformed(ActionEvent event) {↵ | | 7 | public void actionPerformed(ActionEvent event) {↵
|
|
8 | _userAction = CHANGE_ALL;↵ | | 8 | _userAction = IGNORE;↵
|
|
9 | dispose();↵ | | 9 | dispose();↵
|
|
10 | }↵ | | 10 | }↵
|
|
11 | }↵ | | 11 | }↵
|
|
12 | private class IgnoreAction extends AbstractAction {↵ | | 12 | private class IgnoreAllAction extends AbstractAction {↵
|
|
13 | private IgnoreAction() {↵ | | 13 | private IgnoreAllAction() {↵
|
|
14 | super("Ignore");↵ | | 14 | super("Ignore All");↵
|
|
15 | putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_I↵ | | 15 | // putValue( MNEMONIC_KEY, new Integer(KeyEvent.VK_G) );↵
|
|
| | | 16 | // putValue( ACCELERATOR_KEY, new Integer(KeyEvent.VK_G) );↵
|
|
16 | ));↵ | | 17 | putValue(MNEMONIC_KEY, new Integer(KeyEvent.VK_G));↵
|
|
17 | putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_I));↵ | | 18 | putValue(ACCELERATOR_KEY, new Integer(KeyEvent.VK_G));↵
|
|
18 | }↵ | | 19 | }↵
|
|
19 | public void actionPerformed(ActionEvent event) {↵ | | 20 | public void actionPerformed(ActionEvent event) {↵
|
|
20 | _userAction = IGNORE;↵ | | 21 | _userAction = IGNORE_ALL;↵
|
|
21 | dispose();↵ | | 22 | dispose();↵
|
|
22 | }↵ | | 23 | }↵
|
|
23 | } | | 24 | }
|