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 LearnMessageAsSpamCommand(r));↵ | | 4 | CommandProcessor.getInstance().addOp(new ReplyToMailingListCommand(r));↵
|
5 | }↵ | | 5 | }↵
|
|
6 | /**↵ | | 6 | /*↵
|
7 | * Ensures that the action is only enabled when at least one message is↵ | | 7 | * ↵
|
8 | * selected in the GUI.↵ | | 8 | (non-Javadoc)↵
|
9 | * ↵ | | 9 | * ↵
|
10 | * @see org.columba.core.gui.util.ISelectionListener#connectionChanged(org.columba.core.gui.util.SelectionChangedEvent)↵ | | 10 | * @see org.columba.core.gui.util.ISelectionListener#selectionChanged(org.columba.core.gui.util.SelectionChangedEvent)↵
|
11 | */↵ | | 11 | */↵
|
12 | public void selectionChanged(SelectionChangedEvent e) {↵ | | 12 | public void selectionChanged(SelectionChangedEvent e) {↵
|
13 | setEnabled(((TableSelectionChangedEvent) e).getUids().length > 0);↵ | | 13 | setEnabled(((TableSelectionChangedEvent) e).getUids().length > 0);↵
|
14 | | | 14 |
|