Bug 157604 [Jobs] The following rule does not apply: Don't swallow InterruptedException. Call Thread.currentThread().interrupt()
examples/org.eclipse.ui.examples.job/src/org/eclipse/ui/examples/jobs/views/JobsView.java
final long time = getDuration();
		final long sleep = 10;
		IRunnableWithProgress runnableTest = new WorkspaceModifyOperation() {
			/* (non-Javadoc)
			 * @see org.eclipse.ui.actions.WorkspaceModifyOperation#execute(org.eclipse.core.runtime.IProgressMonitor)
			 */
			protected void execute(IProgressMonitor monitor) throws CoreException, InvocationTargetException, InterruptedException {
				int ticks = (int) (time / sleep);
				monitor.beginTask("Spinning inside ApplicationWindow.run()", ticks); 
				monitor.setTaskName("Spinning inside ApplicationWindow.run()"); 
				for (int i = 0; i < ticks; i++) {
					monitor.subTask("Processing tick #" + i); 
					if (monitor.isCanceled())
						return;
					try {
						Thread.sleep(sleep);
					} catch (InterruptedException e) {
						
					}
					monitor.worked(1);
				}
			}
		};
		try {
			PlatformUI.getWorkbench().getActiveWorkbenchWindow().run(true, true, runnableTest);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}