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 Details

    • TraceImportOperation

      public TraceImportOperation(String sourcePath, TmfTraceFolder destFolder)
      Constructor
      Parameters:
      sourcePath - the source path
      destFolder - 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 - true to rename conflicting traces
      Since:
      6.1
    • setFilteringTimeRange

      public void setFilteringTimeRange(ITmfTimestamp start, ITmfTimestamp end)
      Sets the range for timestamps based filtering import.
      Parameters:
      start - Start time of the range
      end - End time of the range
      Since:
      3.1