Interface ISnapshotOperation

All Known Subinterfaces:
ICreateSnapshotsStep, IFinishSnapshotOperationStep, IRestoreSnapshotsStep, IStartSnapshotOperationStep

public interface ISnapshotOperation
Any step of a snapshot operation.
Restriction:
This interface is not intended to be extended by clients.
Restriction:
This interface is not intended to be implemented by clients.
  • Method Details

    • willCreateSnapshots

      boolean willCreateSnapshots()
      Checks if the operation will create any snapshots on create step.
      Returns:
      true if the operation will create snapshots, false otherwise
    • willRestoreSnapshots

      boolean willRestoreSnapshots()
      Checks if the operation will restore any snapshots on restore step.
      Returns:
      true if the operation will restore snapshots, false otherwise
    • isEmpty

      boolean isEmpty()
      Checks whether the operation is empty.

      An empty operation, being executed, does nothing.

      Returns:
      true if the operation is empty, false otherwise
    • getAffectedProjects

      Set<org.eclipse.core.resources.IProject> getAffectedProjects(Set<SnapshotTask> tasks)
      Gets a set of projects, for which the operation will perform any of the given tasks.
      Parameters:
      tasks - the tasks, cannot be null, may be empty
      Returns:
      a set of affected projects, never null