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 | CommandProcessor.getInstance().addOp(↵ | | 4 | CommandProcessor.getInstance().addOp(↵
|
5 | new AddSenderToAddressbookCommand(r));↵ | | 5 | new OpenMessageWithComposerCommand(r));↵
|
6 | }↵ | | |
|
|
7 | /*↵ | | |
|
8 | ↵ | | 6 | }↵
|
|
9 | * (non-Javadoc)↵ | | 7 | /* (non-Javadoc)↵
|
10 | * ↵ | | |
|
11 | * @see org.columba.core.gui.util.ISelectionListener#selectionChanged(org.columba.core.gui.util.SelectionChangedEvent)↵ | | 8 | * @see org.columba.core.gui.util.ISelectionListener#selectionChanged(org.columba.core.gui.util.SelectionChangedEvent)↵
|
12 | */↵ | | |
|
13 | ↵ | | 9 | */↵
|
14 | public void selectionChanged(SelectionChangedEvent e) {↵ | | 10 | public void selectionChanged(SelectionChangedEvent e) {↵
|
15 | setEnabled(((TableSelectionChangedEvent) e).getUids().length > 0);↵ | | 11 | setEnabled(((TableSelectionChangedEvent) e).getUids().length > 0);↵
|
16 | | | 12 |
|