Bug 18703 enable 'organize imports' on source folders and projects [code manipulation]
now that the action works on packages it should be easy to make it work on source folders and projects too
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/actions/WorkbenchRunnableAdapter.java
private IWorkspaceRunnable fWorkspaceRunnable;
	
	public WorkbenchRunnableAdapter(IWorkspaceRunnable runnable) {
		fWorkspaceRunnable= runnable;
	}
	/*
	 * @see IRunnableWithProgress#run(IProgressMonitor)
	 */
	public void run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
		try {
			JavaPlugin.getWorkspace().run(fWorkspaceRunnable, monitor);
		} catch (OperationCanceledException e) {
			throw new InterruptedException(e.getMessage());
		} catch (CoreException e) {
			throw new InvocationTargetException(e);
		}
	}
}