(int command_id)
| 2279 | } |
| 2280 | |
| 2281 | public boolean doUserKeyAction(int command_id) { |
| 2282 | switch (command_id) { |
| 2283 | case 1: |
| 2284 | new ConfigForm(); |
| 2285 | return true; |
| 2286 | case 2: |
| 2287 | cmdCleanAllMessages(); |
| 2288 | return true; |
| 2289 | case 3: |
| 2290 | sd.getTheStream().listener.connectionTerminated(new Exception(SR.MS_SIMULATED_BREAK)); |
| 2291 | return true; |
| 2292 | //#ifdef STATS |
| 2293 | case 4: |
| 2294 | new Statistic.StatsWindow(); |
| 2295 | return true; |
| 2296 | //#endif |
| 2297 | case 5: |
| 2298 | cmdStatus(); |
| 2299 | return true; |
| 2300 | //#ifdef ARCHIVE |
| 2301 | case 7: |
| 2302 | cmdArchive(); |
| 2303 | return true; |
| 2304 | //#endif |
| 2305 | case 11: |
| 2306 | cmdClearPopups(); |
| 2307 | return true; |
| 2308 | case 13: |
| 2309 | cmdInfo(); |
| 2310 | return true; |
| 2311 | //#ifdef JUICK |
| 2312 | case 18: |
| 2313 | Contact jContact = sd.roster.getMainJuickContact(); |
| 2314 | if (jContact != null) { |
| 2315 | focusToContact(jContact, false); |
| 2316 | } |
| 2317 | return true; |
| 2318 | //#endif |
| 2319 | case 19: |
| 2320 | System.gc(); |
| 2321 | try { |
| 2322 | Thread.sleep(50); |
| 2323 | } catch (InterruptedException e) { |
| 2324 | } |
| 2325 | showTimeTrafficInfo(); |
| 2326 | return true; |
| 2327 | case 33: |
| 2328 | if (cf.collapsedGroups) { |
| 2329 | collapseAllGroup(); |
| 2330 | } |
| 2331 | return true; |
| 2332 | //#ifndef WMUC |
| 2333 | case 32: |
| 2334 | if (sd.roster.isLoggedIn()) { |
| 2335 | new Bookmarks(null); |
| 2336 | } |
| 2337 | return true; |
| 2338 | //#endif |
nothing calls this directly
no test coverage detected