Interface IImportOperation

All Known Implementing Classes:
ImportConfigurationOperation, ImportExtensionOperation, ImportExternalObjectOperation, ImportObjectsOperation

public interface IImportOperation
Operation for importing 1C:Enterprise platform XML files.

This operation can return result status IStatus

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Trace option constant for Import operation
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.core.runtime.IStatus
    Returns the status of the export operation or null if operation is not yet completed.
    void
    run(org.eclipse.core.runtime.IProgressMonitor monitor)
    Runs import operation.
    void
    setRefreshProject(boolean refreshProject)
    Toggle on/off process of project refresh after import.
  • Field Details

    • IMPORT_OPERATION_TRACE_OPTION

      static final String IMPORT_OPERATION_TRACE_OPTION
      Trace option constant for Import operation
      See Also:
  • Method Details

    • getStatus

      org.eclipse.core.runtime.IStatus getStatus()
      Returns the status of the export operation or null if operation is not yet completed. If there were any errors, the result is a status object containing individual status objects for each error. If there were no errors, the result is a status object with error code OK.
      Returns:
      the operation status or null if operation is not yet completed.
    • run

      void run(org.eclipse.core.runtime.IProgressMonitor monitor) throws InvocationTargetException, InterruptedException
      Runs import operation. Progress should be reported to the given progress monitor.
      Parameters:
      monitor - the progress monitor to use to display progress and receive requests for cancelation
      Throws:
      InvocationTargetException - if the run method must propagate a checked exception, it should wrap it inside an InvocationTargetException; runtime exceptions are automatically wrapped in an InvocationTargetException by the calling context
      InterruptedException - if the operation detects a request to cancel, using IProgressMonitor.isCanceled(), it should exit by throwing InterruptedException
    • setRefreshProject

      void setRefreshProject(boolean refreshProject)
      Toggle on/off process of project refresh after import.

      By default project will be refreshed after import.

      Parameters:
      refreshProject - the new state of process of project refresh