public void close() { if (fetchThread != null && !fetchThread.done) { luwrain.message(stringConstructor.processNotFinished()); return; } luwrain.closeApp(); }
public void launchFetching() { if (fetchThread != null && !fetchThread.done) { luwrain.message(stringConstructor.processAlreadyRunning()); return; } fetchArea.clear(); fetchThread = new FetchThread(luwrain, stringConstructor, fetchArea); Thread t = new Thread(fetchThread); t.start(); }