この拡張ポイントを拡張するリポジトリーは、
リソースの変更、移動、および削除に対する共通リポジトリー特有のルールの実装を提供します。 詳しくは IFileModificationValidator
および MoveDeleteHook
のインターフェースを参照してください。
リポジトリー・タイプは、org.eclipse.team.core.ProjectSetCapability などの非プロジェクト固有の機能を 提供する場合にも指定することができます。
別のプロバイダーのプラグインを現行インストール環境で使用できない場合、リポジトリー・プロバイダー・タイプは、別のプロバイダーからプロジェクトをインポート可能なことを指定することもできます。この方法では、2 つのプロバイダーで同じ ID を再利用できない場合に、プロバイダー実装間のマイグレーションをサポートできます。
リポジトリー・プロバイダー・タイプは、親コンテナーに対して相対的な 1 つ以上のメタファイル・パス (コンマで区切られている) も指定できます。非共用のプロジェクトまたはフォルダーに、リポジトリー定義に関連したすべてのメタファイル・パスとマッチングするファイルが含まれている場合、メソッド RepositoryProviderType#metaFilesDetected
が起動され、親コンテナーが引数として渡されます。この処理を実行すると、リポジトリー・タイプはファイルにチーム専用のマークを付けて、プロジェクトも共用できるようになります。詳しくは、上記メソッドの javadoc を参照してください。
<!ELEMENT extension (repository)>
<!ATTLIST extension
point CDATA #REQUIRED>
<!ELEMENT repository EMPTY>
<!ATTLIST repository
id CDATA #IMPLIED
class CDATA #REQUIRED
typeClass CDATA #IMPLIED
canImportId CDATA #IMPLIED
metaFilePaths CDATA #IMPLIED>
<extension point=
"org.eclipse.team.core.repository"
>
<repository class=
"org.eclipse.myprovider.MyRepositoryProvider"
typeClass=
"org.eclipse.myprovider.MyRepositoryProvider"
id=
"org.eclipse.myprovider.myProviderID"
canImportId=
"org.eclipse.myprovider.myOldProviderID"
metaFilePaths=
".meta/files,.meta/version"
>
</repository>
</extension>
Copyright (c) 2004 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html