for (Iterator iter= packages.iterator(); iter.hasNext();) { l.addAll(analyze((IPackageFragment) iter.next()));
for (Iterator iter= elements.iterator(); iter.hasNext();) { IJavaElement element= (IJavaElement) iter.next(); if (element.getElementType() == IJavaElement.PACKAGE_FRAGMENT) l.addAll(analyze((IPackageFragment) element)); else if (element.getElementType() == IJavaElement.PACKAGE_FRAGMENT_ROOT) l.addAll(analyze((IPackageFragmentRoot) element)); if (element.getElementType() == IJavaElement.JAVA_PROJECT) l.addAll(analyze((IJavaProject) element));
	public void run(IAction action) {		List packages= getPackageFragments(getSelection());		if (packages == null || packages.isEmpty())			return;				try{			List l= new ArrayList();				for (Iterator iter= packages.iterator(); iter.hasNext();) {				l.addAll(analyze((IPackageFragment) iter.next()));			}			showResults(l);		}catch(JavaModelException e) {			ExceptionHandler.handle(e, NLSUIMessages.getString("FindStringsAction.title"), NLSUIMessages.getString("FindStringsAction.see_log")); //$NON-NLS-2$ //$NON-NLS-1$		}	}