小组资源库提供程序

org.eclipse.team.core.repository

2.0

“小组”插件包含“资源库”的概念。资源库的作业用来支持在“小组”成员之间共享资源。资源库是以每个项目为基础配置的。一次只能将一个资源库映射至项目。

扩展此扩展点的资源库可提供特定于公共资源库的规则的实现以进行资源修改、移动和删除。有关更多详细信息,请参阅下列接口:IFileModificationValidatorMoveDeleteHook

还可以指定“资源库”类型,以便提供特定于非项目的功能,例如,org.eclipse.team.core.ProjectSetCapability

<!ELEMENT extension (repository)>

<!ATTLIST extension

point CDATA #REQUIRED>


<!ELEMENT repository EMPTY>

<!ATTLIST repository

id        CDATA #IMPLIED

class     CDATA #REQUIRED

typeClass CDATA #IMPLIED>


<extension point=

"org.eclipse.team.core.repository"

>

<repository class=

"org.eclipse.myprovider.MyRepositoryProvider"

id=

"org.eclipse.myprovider.myProviderID"

>

</repository>

</extension>

class 属性的值必须表示 org.eclipse.team.core.RepositoryProvider 的子类。

所提供的 RepositoryProvider 实现提供了 helper 方法和公共代码以将提供程序映射至项目或取消这些映射。可选的 RepositoryProviderType 通过 ProjectSetCapability 提供了项目集导入和导出。