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/ui/actions/OrganizeImportsAction.java
if (!JavaModelUtil.isEditable(cus[i])) {
				isEnabled= false;
				break;
			}
		}
		setEnabled(isEnabled);
	}
	
	private ICompilationUnit[] getCompilationUnits(IStructuredSelection selection) {
		HashSet result= new HashSet();
		Object[] selected= selection.toArray();
		for (int i= 0; i < selected.length; i++) {
			try {
				if (selected[i] instanceof IJavaElement) {
					IJavaElement elem= (IJavaElement) selected[i];
					switch (elem.getElementType()) {
						case IJavaElement.COMPILATION_UNIT:
							result.add(elem);
							break;
						case IJavaElement.IMPORT_CONTAINER:
							result.add(elem.getParent());
							break;
						case IJavaElement.PACKAGE_FRAGMENT:
							IPackageFragment pack= (IPackageFragment) elem;
							result.addAll(Arrays.asList(pack.getCompilationUnits()));
							break;
					}
				}
			} catch (JavaModelException e) {
				JavaPlugin.log(e);