|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.common.componentcore.ComponentCore
Provides a handle creation factory for the Virtual Path API. Clients may use this class to convert Platform IResource model elements to IVirtualResource model elements.
ComponentCore provides a consistent entry point to the IVirtual Path model that allows clients to group resources together in logical collections with a path structure that varies from their actual source location structures.
Constructor Summary | |
---|---|
ComponentCore()
|
Method Summary | |
---|---|
static IVirtualComponent |
createComponent(IProject aProject,
java.lang.String aComponentName)
Return an IVirtualComponent with the given name (aComponentName) contained by the given project (aProject). |
static IVirtualFile |
createFile(IProject aProject,
java.lang.String aComponentName,
IPath aRuntimePath)
Return an IVirtualFile with a runtime path specified by aRuntimePath contained by aProject, in a component named aComponentName. |
static IFlexibleProject |
createFlexibleProject(IProject aProject)
Return an IFlexibleProject that provides an entry-point to the components stored within the given project. |
static IVirtualFolder |
createFolder(IProject aProject,
java.lang.String aComponentName,
IPath aRuntimePath)
Return an IVirtualFolder with a runtime path specified by aRuntimePath contained by aProject, in a component named aComponentName. |
static IVirtualReference |
createReference(IVirtualComponent aComponent,
IVirtualComponent aReferencedComponent)
Return an IVirtualReference that captures a relationship between aComponent and aReferencedComponent. |
static IVirtualResource[] |
createResources(IResource aResource)
Return an array of IVirtualResources that represent the given IResource. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ComponentCore()
Method Detail |
public static IFlexibleProject createFlexibleProject(IProject aProject)
aProject
- A valid, accessible IProject
public static IVirtualComponent createComponent(IProject aProject, java.lang.String aComponentName)
aProject
- A valid, accessible project to contain the componentaComponentName
- A name to identify the component within the project.
IVirtualContainer.create(int, IProgressMonitor)
public static IVirtualFolder createFolder(IProject aProject, java.lang.String aComponentName, IPath aRuntimePath)
aProject
- A valid, accessible project to contain the componentaComponentName
- A name to identify the component within the project.aRuntimePath
- The runtime path of the IVirtualFolder to return.
IVirtualContainer.create(int, IProgressMonitor)
,
IVirtualResource.createLink(IPath, int, IProgressMonitor)
public static IVirtualFile createFile(IProject aProject, java.lang.String aComponentName, IPath aRuntimePath)
IVirtualResource.getUnderlyingResource()
or
IVirtualFile.getUnderlyingFile()
to create a resource with real contents.
aProject
- A valid, accessible project to contain the componentaComponentName
- A name to identify the component within the project.aRuntimePath
- The runtime path of the IVirtualFolder to return.
IVirtualResource.createLink(IPath, int, IProgressMonitor)
public static IVirtualReference createReference(IVirtualComponent aComponent, IVirtualComponent aReferencedComponent)
aComponent
- A valid, existing IVirtualComponentaReferencedComponent
- A valid, existing IVirtualComponent
IVirtualReference.create(int, IProgressMonitor)
public static IVirtualResource[] createResources(IResource aResource)
aResource
- An accessible IResource
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |