團隊儲存庫提供者

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 的專案集匯入和匯出。