Class BundleImporterDelegate
java.lang.Object
org.eclipse.team.core.importing.provisional.BundleImporterDelegate
- All Implemented Interfaces:
IBundleImporterDelegate
Abstract implementation of
IBundleImporterDelegate
. It is recommended
to subclass this class rather than implementing IBundleImporterDelegate
directly when providing importer delegates.
EXPERIMENTAL. This interface has been added as part of a work in progress. There is no guarantee that this API will work or that it will remain the same. Please do not use this API without consulting with the Team team.
- Since:
- 3.6
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RepositoryProviderType
protected abstract Set
IProject[]
performImport
(ScmUrlImportDescription[] descriptions, IProgressMonitor monitor) Imports bundles into the workspace creating a project for each import description.validateImport
(Map[] manifests) Returns an array of objects describing how each given bundle (manifest headers and values) can be imported into a workspace project.
-
Field Details
-
ECLIPSE_SOURCE_REFERENCES
- See Also:
-
-
Constructor Details
-
BundleImporterDelegate
public BundleImporterDelegate()
-
-
Method Details
-
getSupportedValues
-
getProviderType
-
validateImport
Description copied from interface:IBundleImporterDelegate
Returns an array of objects describing how each given bundle (manifest headers and values) can be imported into a workspace project. Anull
entry in the returned array indicates the corresponding bundle cannot be imported by this delegate.- Specified by:
validateImport
in interfaceIBundleImporterDelegate
- Parameters:
manifests
- array of maps containing manifest headers and values of the associated bundles- Returns:
- array of bundle import descriptions that may contain
null
entries
-
performImport
public IProject[] performImport(ScmUrlImportDescription[] descriptions, IProgressMonitor monitor) throws CoreException Description copied from interface:IBundleImporterDelegate
Imports bundles into the workspace creating a project for each import description. Reports progress to the given monitor, if notnull
.- Specified by:
performImport
in interfaceIBundleImporterDelegate
- Parameters:
descriptions
- description of bundles to importmonitor
- progress monitor ornull
- Returns:
- collection of projects created in the workspace or
null
if none - Throws:
CoreException
- if unable to import projects
-