Class TraceImportOperation
java.lang.Object
org.eclipse.ui.actions.WorkspaceModifyOperation
org.eclipse.tracecompass.tmf.ui.actions.TraceImportOperation
- All Implemented Interfaces:
org.eclipse.jface.operation.IRunnableWithProgress,org.eclipse.jface.operation.IThreadListener
public class TraceImportOperation
extends org.eclipse.ui.actions.WorkspaceModifyOperation
An operation which imports traces from a source folder to a target folder.
By default, the operation will import all traces from the source folder recursively, using trace type auto-detection, preserving the folder structure and creating links for each imported trace in the target folder, overwriting any existing trace without warning.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionTraceImportOperation(String sourcePath, TmfTraceFolder destFolder) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoidrenameConflictingTraces(boolean renameConflictingTraces) Sets the rename option.voidsetFilteringTimeRange(ITmfTimestamp start, ITmfTimestamp end) Sets the range for timestamps based filtering import.voidsetSkipArchiveExtraction(boolean skipArchiveExtraction) Sets the skip archive extraction option.Methods inherited from class org.eclipse.ui.actions.WorkspaceModifyOperation
getRule, run, threadChange
-
Constructor Details
-
TraceImportOperation
Constructor- Parameters:
sourcePath- the source pathdestFolder- the destination folder
-
-
Method Details
-
setSkipArchiveExtraction
public void setSkipArchiveExtraction(boolean skipArchiveExtraction) Sets the skip archive extraction option. When set to true, archive files will be imported directly without being detected or extracted.- Parameters:
skipArchiveExtraction- true to skip archive extraction- Since:
- 3.1
-
renameConflictingTraces
public void renameConflictingTraces(boolean renameConflictingTraces) Sets the rename option.- Parameters:
renameConflictingTraces-trueto rename conflicting traces- Since:
- 6.1
-
setFilteringTimeRange
Sets the range for timestamps based filtering import.- Parameters:
start- Start time of the rangeend- End time of the range- Since:
- 3.1
-