Interface IImportService


  • public interface IImportService
    Service to control full process of import.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.core.runtime.IStatus work​(org.eclipse.core.resources.IProject project, Path sourcePath, Path destinationPath, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Executes import work of platform XML files from the provided source directory to the provided destination directory using the project as context.
      org.eclipse.core.runtime.IStatus work​(org.eclipse.core.resources.IProject project, Path sourcePath, org.eclipse.core.runtime.IProgressMonitor progressMonitor)
      Executes import work of platform XML files from the provided source directory to the provided existing project.
    • Field Detail

      • IMPORT_SERVICE_TRACE_OPTION

        static final String IMPORT_SERVICE_TRACE_OPTION
        Trace option constant for Import service
        See Also:
        Constant Field Values
    • Method Detail

      • work

        org.eclipse.core.runtime.IStatus work​(org.eclipse.core.resources.IProject project,
                                              Path sourcePath,
                                              org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Executes import work of platform XML files from the provided source directory to the provided existing project.
        Parameters:
        project - the project to import to, cannot be null
        sourcePath - the source directory that contains file(s) to import, cannot be null
        progressMonitor - the progress monitor, can be null
        Returns:
        an execution IStatus of import work, never null
      • work

        org.eclipse.core.runtime.IStatus work​(org.eclipse.core.resources.IProject project,
                                              Path sourcePath,
                                              Path destinationPath,
                                              org.eclipse.core.runtime.IProgressMonitor progressMonitor)
        Executes import work of platform XML files from the provided source directory to the provided destination directory using the project as context.
        Parameters:
        project - the context project to use in import work, cannot be null
        sourcePath - the source directory that contains file(s) to import, cannot be null
        destinationPath - the destination directory to import to, cannot be null
        progressMonitor - the progress monitor, can be null
        Returns:
        an execution IStatus of import work result, never null