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