public void run() { try { SourceUtils.waitScanFinished(); } catch (InterruptedException ie) { Exceptions.printStackTrace(ie); } SwingUtilities.invokeLater(new Runnable() { public void run() { if (!cancel) { if (waitDialog != null) { waitDialog.setVisible(false); } action.run(); } } }); }
public void run() { try { SourceUtils.waitScanFinished(); } catch (InterruptedException ie) { Exceptions.printStackTrace(ie); } SwingUtilities.invokeLater(new Runnable() { public void run() { if (!cancel) { if (waitDialog != null) { waitDialog.setVisible(false); waitDialog.dispose(); } action.run(); } } }); }
private Boolean performClean(@NonNull final Context ctx) throws IOException { final File targetFolder = ctx.getTarget(); if (targetFolder == null) { return null; } File tagFile = new File(targetFolder, TAG_FILE_NAME); if (!tagFile.exists()) { return null; } try { SourceUtils.waitScanFinished(); } catch (InterruptedException e) { //Not Important LOG.log(Level.FINE, null, e); return false; } delete(targetFolder, false); delete(tagFile, true); return null; }
SourceUtils.waitScanFinished(); } catch (InterruptedException e) {