Interface IImportOperation


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

    This operation can return result status IStatus

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      org.eclipse.core.runtime.IStatus getStatus()
      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 Detail

      • IMPORT_OPERATION_TRACE_OPTION

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

      • 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