(MenuCommand command, VirtualList displayable)
| 119 | } |
| 120 | |
| 121 | public void menuAction(MenuCommand command, VirtualList displayable) { |
| 122 | //#ifdef CLIPBOARD |
| 123 | if (command == cmdCopy) { |
| 124 | try { |
| 125 | String str = ((MultiLine) getFocusedObject()).toString(); |
| 126 | if (str == null) |
| 127 | str = ""; |
| 128 | ClipBoardIO.getInstance().setClipBoard(str); |
| 129 | } catch (Exception e) {} |
| 130 | } |
| 131 | |
| 132 | if (command == cmdCopyPlus) { |
| 133 | try { |
| 134 | String str = ((MultiLine) getFocusedObject()).toString(); |
| 135 | if (str == null) |
| 136 | str = ""; |
| 137 | ClipBoardIO.getInstance().append(str); |
| 138 | } catch (Exception e) {} |
| 139 | } |
| 140 | //#endif |
| 141 | super.menuAction(command, displayable); |
| 142 | } |
| 143 | |
| 144 | public void cmdOk() { |
| 145 | destroyView(); |
nothing calls this directly
no test coverage detected