resource= ((IJavaElement) element).getUnderlyingResource();
resource= ((IJavaElement) element).getResource();
	public IResource getContainingResource(Object element) throws JavaModelException {		IResource resource= null;		if (element instanceof IResource)			resource= (IResource) element;		if (element instanceof IJavaElement) {			resource= ((IJavaElement) element).getUnderlyingResource();			if (resource == null)				resource= ((IJavaElement) element).getJavaProject().getProject();		}		return resource;	}