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