Interface IExternalObjectRestorer
-
public interface IExternalObjectRestorer
External object restorer allows to restore external object dumps to existing objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
restore(String projectName, Version version, org.eclipse.core.resources.IProject baseProject, Path path, org.eclipse.core.runtime.IProgressMonitor monitor)
Create external object project with the provided name and version if it does not exist and restore provided external object dump.void
restore(org.eclipse.core.resources.IProject project, Path sourcePath, Path targetPath, org.eclipse.core.runtime.IProgressMonitor monitor)
Restore provided external object dump to provided target folder in specifed project context.void
restore(org.eclipse.core.resources.IProject project, Path path, org.eclipse.core.runtime.IProgressMonitor monitor)
Restore provided external object dump in the given external object project.
-
-
-
Method Detail
-
restore
void restore(org.eclipse.core.resources.IProject project, Path path, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Restore provided external object dump in the given external object project. Dump path must be an existing file with external object dump. Usually, dumps have*.epf
or*.erf
file extensions.Restore operation may be long-running. Progress and cancellation are provided by the given progress
monitor
.- Parameters:
project
- the external object project, that holdsobject
, cannot benull
path
- the source path of external object dump, cannot benull
monitor
- the progress monitor for reporting progress on how the wait is progressing, ornull
if no progress monitoring is required- Throws:
org.eclipse.core.runtime.CoreException
- if dump fails
-
restore
void restore(String projectName, Version version, org.eclipse.core.resources.IProject baseProject, Path path, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Create external object project with the provided name and version if it does not exist and restore provided external object dump. Dump path must be an existing file with external object dump. Usually, dumps have*.epf
or*.erf
file extensions.Restore operation may be long-running. Progress and cancellation are provided by the given progress
monitor
.- Parameters:
projectName
- the external object project name, cannot benull
version
- the project version, cannot benull
baseProject
- the base project for the external object project, cannot benull
path
- the source path of external object dump, cannot benull
monitor
- the progress monitor for reporting progress on how the wait is progressing, ornull
if no progress monitoring is required- Throws:
org.eclipse.core.runtime.CoreException
- if dump fails
-
restore
void restore(org.eclipse.core.resources.IProject project, Path sourcePath, Path targetPath, org.eclipse.core.runtime.IProgressMonitor monitor) throws org.eclipse.core.runtime.CoreException
Restore provided external object dump to provided target folder in specifed project context. Dump path must be an existing file with external object dump. Usually, dumps have*.epf
or*.erf
file extensions.Restore operation may be long-running. Progress and cancellation are provided by the given progress
monitor
.- Parameters:
project
- the external object project name, cannot benull
sourcePath
- the source path of external object dump, cannot benull
targetPath
- the target path to put restored root XML fiile of external object dump to, cannot benull
monitor
- the progress monitor for reporting progress on how the wait is progressing, ornull
if no progress monitoring is required- Throws:
org.eclipse.core.runtime.CoreException
- if dump fails
-
-