()
| 4499 | @Override |
| 4500 | public void actionPerformed(ActionEvent e) { |
| 4501 | Runnable runnable = new Runnable() { @Override |
| 4502 | public void run() { |
| 4503 | try { File file = new File(location); |
| 4504 | PersistenceManager.loadObjectFromFile(file); |
| 4505 | } catch(Exception e) { |
| 4506 | String message = "Couldn't reload application.\n" + e.getMessage(); |
| 4507 | log.error(message, e); |
| 4508 | if (e instanceof IOException) { |
| 4509 | // remove selected element from the applications list |
| 4510 | locations.put("applications", list.replaceFirst(name + "(;|$)", "")); |
| 4511 | fileChooser.setLocations(locations); |
| 4512 | } |
| 4513 | } finally { processFinished(); }}}; |
| 4514 | Thread thread = new Thread(runnable ,"Reload application"); |
| 4515 | thread.setPriority(Thread.MIN_PRIORITY); |
| 4516 | thread.start(); |
nothing calls this directly
no test coverage detected