Package com._1c.g5.v8.dt.import_
Interface IImportOperation
-
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 String
IMPORT_OPERATION_TRACE_OPTION
Trace option constant for Import operation
-
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 ornull
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 ornull
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 codeOK
.- 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 anInvocationTargetException
; runtime exceptions are automatically wrapped in anInvocationTargetException
by the calling contextInterruptedException
- if the operation detects a request to cancel, usingIProgressMonitor.isCanceled()
, it should exit by throwingInterruptedException
-
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
-
-