MCPcopy Create free account
hub / github.com/GateNLP/gate-core / run

Method run

src/main/java/gate/gui/MainFrame.java:4501–4513  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 6

loadObjectFromFileMethod · 0.95
setLocationsMethod · 0.80
processFinishedMethod · 0.65
getMessageMethod · 0.45
errorMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected