JobRunner.runSyncedInUIThread(shell, new Runnable() {
public void run() {
if (monitor.isCanceled() || Controller.getDefault().isShuttingDown())
return;
CleanUpReminderDialog visibleInstance = CleanUpReminderDialog.getVisibleInstance();
/* Shell is Minimized to Tray, reschedule shortly later */
if (visibleInstance == null && !shell.isVisible())
needShortReschedule.set(true);
/* Open Cleanup Reminder Dialog */
else if (visibleInstance == null && new CleanUpReminderDialog(shell).open() == IDialogConstants.OK_ID) {
OwlUI.restoreWindow(shell);
new CleanUpAction().openWizard(shell);
}
}
});