public static IStorage getResourceBundle(IJavaProject javaProject, ITypeBinding accessorClass) throws JavaModelException { String resourceBundle= getResourceBundleName(javaProject, accessorClass); if (resourceBundle == null) { return null;
public static IStorage getResourceBundle(IJavaProject javaProject, String packageName, String resourceName) throws JavaModelException { IPackageFragmentRoot[] allRoots= javaProject.getAllPackageFragmentRoots(); for (int i= 0; i < allRoots.length; i++) { IPackageFragmentRoot root= allRoots[i]; if (root.getKind() == IPackageFragmentRoot.K_SOURCE) { IStorage storage= getResourceBundle(root, packageName, resourceName); if (storage != null) return storage; }
	public static IStorage getResourceBundle(IJavaProject javaProject, ITypeBinding accessorClass) throws JavaModelException {		String resourceBundle= getResourceBundleName(javaProject, accessorClass);		if (resourceBundle == null) {			return null;		}				String resourceName= Signature.getSimpleName(resourceBundle) + NLSRefactoring.PROPERTY_FILE_EXT;		String packName= Signature.getQualifier(resourceBundle);				if (accessorClass.isFromSource())			return getResourceBundle(javaProject, packName, resourceName);		else if (accessorClass.getJavaElement() != null)			return getResourceBundle((IPackageFragmentRoot)accessorClass.getJavaElement().getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT), packName, resourceName);				return null;	}