modulecore resources api overview

The ComponentCore Virtual Path API allows clients to navigate logical collections of files within Eclipse projects using API similar to the Eclipse IResource API.

Virtual Path API

The Virtual Path API provides a facade to the flexible project model. Each IVirtualResource represents a resource from the runtime component under a virtual runtime path. Each IVirtualResource may represent one or more Eclipse Platfrom resources located at the same runtime path.

Each IVirtualResource is contained by exactly one IVirtualComponent. However, the underlying resources that are represented by the IVirtualResource may be contained by multiple IVirtualComponents. IVirtualComponents are contained by IFlexibleProjects. Each IFlexibleProject may contain one or more IVirtualComponents.

Figure 1: A visual representation of a possible mapping between a Virtual structure and a Platform Resource structure.

Figure 2: Virtual Path Model

top