Package com._1c.g5.v8.dt.import_
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 -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.core.runtime.IStatusReturns the status of the export operation ornullif operation is not yet completed.voidrun(org.eclipse.core.runtime.IProgressMonitor monitor) Runs import operation.voidsetRefreshProject(boolean refreshProject) Toggle on/off process of project refresh after import.
-
Field Details
-
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 ornullif 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
nullif 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 anInvocationTargetExceptionby 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
-