org.eclipse.jpt.common.core.resource
Interface ResourceLocator


public interface ResourceLocator

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.

Since:
3.0
Version:
3.0

Method Summary
 boolean acceptResourceLocation(org.eclipse.core.resources.IProject project, org.eclipse.core.resources.IContainer container)
          Return whether the given container is an acceptable (non-java) resource location for the given project
 org.eclipse.core.resources.IContainer getDefaultResourceLocation(org.eclipse.core.resources.IProject project)
          Return the default location in which to create new (non-java) resources
 org.eclipse.core.runtime.IPath getResourcePath(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath runtimePath)
          Return the workspace relative absolute resource path best represented by the given runtime path for the given project
 org.eclipse.core.runtime.IPath getRuntimePath(org.eclipse.core.resources.IProject project, org.eclipse.core.runtime.IPath resourcePath)
          Return the runtime path best represented by the given workspace relative absolute resource path for the given project
 

Method Detail

acceptResourceLocation

boolean acceptResourceLocation(org.eclipse.core.resources.IProject project,
                               org.eclipse.core.resources.IContainer container)
Return whether the given container is an acceptable (non-java) resource location for the given project


getDefaultResourceLocation

org.eclipse.core.resources.IContainer getDefaultResourceLocation(org.eclipse.core.resources.IProject project)
Return the default location in which to create new (non-java) resources


getResourcePath

org.eclipse.core.runtime.IPath getResourcePath(org.eclipse.core.resources.IProject project,
                                               org.eclipse.core.runtime.IPath runtimePath)
Return the workspace relative absolute resource path best represented by the given runtime path for the given project


getRuntimePath

org.eclipse.core.runtime.IPath getRuntimePath(org.eclipse.core.resources.IProject project,
                                              org.eclipse.core.runtime.IPath resourcePath)
Return the runtime path best represented by the given workspace relative absolute resource path for the given project