Dali Provisional API
Release 3.2

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


public interface ResourceLocator

Client-defined resource locator.

See org.eclipse.jpt.common.core/plugin.xml:resourceLocators.

See org.eclipse.jpt.common.core/schema/resourceLocators.exsd.

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

Method Summary
 IContainer getDefaultLocation(IProject project)
          Return the default location in which to create new (non-Java) resources.
 IPath getRuntimePath(IProject project, IPath resourcePath)
          Return the runtime path best represented by the specified workspace relative absolute resource path for the specified project.
 IPath getWorkspacePath(IProject project, IPath runtimePath)
          Return the workspace relative absolute resource path best represented by the specified runtime path for the specified project.
 boolean locationIsValid(IProject project, IContainer container)
          Return whether the specified container is an acceptable (non-Java) resource location for the specified project.
 

Method Detail

locationIsValid

boolean locationIsValid(IProject project,
                        IContainer container)
Return whether the specified container is an acceptable (non-Java) resource location for the specified project.


getDefaultLocation

IContainer getDefaultLocation(IProject project)
Return the default location in which to create new (non-Java) resources.


getWorkspacePath

IPath getWorkspacePath(IProject project,
                       IPath runtimePath)
Return the workspace relative absolute resource path best represented by the specified runtime path for the specified project.


getRuntimePath

IPath getRuntimePath(IProject project,
                     IPath resourcePath)
Return the runtime path best represented by the specified workspace relative absolute resource path for the specified project.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.