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