IFile resource) throws CoreException {
VmResourceRef vmResourceRef = findVmResourceRefFromWorkspaceFile(resource);
if (vmResourceRef == null) {
return null;
}
return vmResourceRef.accept(RESOLVE_RESOURCE_VISITOR);
}
private final VmResourceRef.Visitor<Collection<? extends VmResource>> RESOLVE_RESOURCE_VISITOR = new VmResourceRef.Visitor<Collection<? extends VmResource>>() {
@Override
public java.util.Collection<? extends VmResource> visitRegExpBased(