1 | void actionPerformed(ActionEvent evt) {↵ | | 1 | void actionPerformed(ActionEvent evt) {↵
|
2 | IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator())↵ | | 2 | IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator())↵
|
3 | .getTableSelection();↵ | | 3 | .getTableSelection();↵
|
4 | r.setMarkVariant(MarkMessageCommand.MARK_AS_ANSWERED);↵ | | 4 | r.setMarkVariant(MarkMessageCommand.MARK_AS_FLAGGED);↵
|
|
5 | ToggleMarkCommand c = new ToggleMarkCommand(r);↵ | | 5 | ToggleMarkCommand c = new ToggleMarkCommand(r);↵
|
|
6 | CommandProcessor.getInstance().addOp(c);↵ | | 6 | CommandProcessor.getInstance().addOp(c);↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /*↵ | | 8 | /*↵
|
9 | * (non-Javadoc)↵ | | 9 | * (non-Javadoc)↵
|
10 | * ↵ | | 10 | * ↵
|
11 | * @see org.columba.core.gui.util.ISelectionListener#selectionChanged(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 | }
|