public static IFile findGuvnorMetadata(IResource resource) {
        IFile res = null;
        IPath dir = resource.getFullPath().removeLastSegments(1);
        IPath mdpath = dir.append(".guvnorinfo").append("." + resource.getName()); //$NON-NLS-1$ //$NON-NLS-2$
        IResource mdResource = resource.getWorkspace().getRoot().findMember(mdpath);
        if (mdResource != null
           && mdResource.exists()
           && mdResource instanceof IFile) {
            res = (IFile)mdResource;
        }
        return res;
    }
public static IFile findGuvnorMetadata(IResource resource) {
        IFile res = null;
        IPath dir = resource.getFullPath().removeLastSegments(1);
        IPath mdpath = dir.append(".guvnorinfo").append("." + resource.getName()); 
        IResource mdResource = resource.getWorkspace().getRoot().findMember(mdpath);
        if (mdResource != null
           && mdResource.exists()
           && mdResource instanceof IFile) {
            res = (IFile)mdResource;
        }
        return res;
    }
public static IFile findGuvnorMetadata ( IResource resource ) { IFile res = null ; IPath dir = resource . getFullPath ( ) . removeLastSegments ( 1 ) ; IPath mdpath = dir . append ( ".guvnorinfo" ) . append ( "." + resource . getName ( ) ) ; //$NON-NLS-1$ //$NON-NLS-2$ IResource mdResource = resource . getWorkspace ( ) . getRoot ( ) . findMember ( mdpath ) ; if ( mdResource != null && mdResource . exists ( ) && mdResource instanceof IFile ) { res = ( IFile ) mdResource ; } return res ; }
Finds the local Guvnor metadata file associated with a given resource.
@param resource The resource to locate metadata for.
@return The metadata file for the given resource, null if metadata is not found.
Finds the local Guvnor metadata file associated with a given resource .