|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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.
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 |
|---|
boolean locationIsValid(IContainer container)
IContainer getDefaultLocation()
IPath getWorkspacePath(IPath runtimePath)
IPath getRuntimePath(IPath resourcePath)
IFile getPlatformFile(IPath runtimePath)
IFile that best represents the specified runtime
location.
|
Dali Provisional API Release 3.2 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||