Dali Provisional API
Release 3.2

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


public interface ProjectResourceLocator

Implementations of this interface can be retrieved via the Adapter framework:

 IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject("Foo Project");
 ProjectResourceLocator locator = (ProjectResourceLocator) project.getAdapter(ProjectResourceLocator.class);
 

See org.eclipse.jpt.common.core/plugin.xml:org.eclipse.core.runtime.adapters.

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.2
See Also:
org.eclipse.jpt.common.core.internal.resource.ProjectAdapterFactory

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

Method Detail

locationIsValid

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


getDefaultLocation

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


getWorkspacePath

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


getRuntimePath

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


getPlatformFile

IFile getPlatformFile(IPath runtimePath)
Return an IFile that best represents the specified runtime location.


Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.