Object element= (Object)iter.next();
Object element= iter.next();
	private boolean computeEnablementState(IStructuredSelection selection) throws JavaModelException {		if (selection.isEmpty())			return false;		for (Iterator iter= selection.iterator(); iter.hasNext();) {			Object element= (Object)iter.next();			if (!(element instanceof IJavaElement))				return false;			IJavaElement javaElement= (IJavaElement)element;			if (! javaElement.exists() || javaElement.isReadOnly())				return false;			int elementType= javaElement.getElementType();			if (elementType != IJavaElement.PACKAGE_FRAGMENT && 				elementType != IJavaElement.PACKAGE_FRAGMENT_ROOT &&				elementType != IJavaElement.JAVA_PROJECT)				return false;			if (elementType == IJavaElement.PACKAGE_FRAGMENT_ROOT){				IPackageFragmentRoot root= (IPackageFragmentRoot)javaElement;				if (root.isExternal() || ReorgUtils.isClassFolder(root))					return false;			}		}		return true;	}