1 | void actionPerformed(ActionEvent evt) {↵ | | 1 | void actionPerformed(ActionEvent ↵
|
2 | ↵ | | 2 | arg0) {↵
|
3 | IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator())↵ | | 3 | IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator())↵
|
4 | .getTableSelection();↵ | | 4 | .getTableSelection();↵
|
5 | CommandProcessor.getInstance().addOp(↵ | | 5 | CommandProcessor.getInstance().addOp(↵
|
6 | new AddAllSendersToAddressbookCommand(r));↵ | | |
|
7 | }↵ | | |
|
|
8 | /*↵ | | |
|
9 | * (non-Javadoc)↵ | | |
|
10 | * ↵ | | |
|
11 | ↵ | | 6 | new LearnMessageAsHamCommand(r));↵
|
| | | 7 | }↵
|
|
| | | 8 | /**↵
|
| | | 9 | * Ensures that the action is only enabled when at least↵
|
| | | 10 | * one message is selected in the GUI.↵
|
12 | * @see org.columba.core.gui.util.ISelectionListener#selectionChanged(org.columba.core.gui.util.SelectionChangedEvent)↵ | | 11 | * @see org.columba.core.gui.util.ISelectionListener#connectionChanged(org.columba.core.gui.util.SelectionChangedEvent)↵
|
13 | */↵ | | |
|
14 | ↵ | | 12 | */↵
|
15 | public void selectionChanged(SelectionChangedEvent e) {↵ | | 13 | public void selectionChanged(SelectionChangedEvent e) {↵
|
16 | setEnabled(((TableSelectionChangedEvent) e).getUids().length > 0);↵ | | 14 | setEnabled(((TableSelectionChangedEvent) e).getUids().length > 0);↵
|
17 | } | | 15 | }
|