Interface ISnapshotOperation
-
- All Known Subinterfaces:
ICreateSnapshotsStep,IFinishSnapshotOperationStep,IRestoreSnapshotsStep,IStartSnapshotOperationStep
public interface ISnapshotOperationAny 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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.booleanisEmpty()Checks whether the operation is empty.booleanwillCreateSnapshots()Checks if the operation will create any snapshots oncreate step.booleanwillRestoreSnapshots()Checks if the operation will restore any snapshots onrestore step.
-
-
-
Method Detail
-
willCreateSnapshots
boolean willCreateSnapshots()
Checks if the operation will create any snapshots oncreate step.- Returns:
trueif the operation will create snapshots, false otherwise
-
willRestoreSnapshots
boolean willRestoreSnapshots()
Checks if the operation will restore any snapshots onrestore step.- Returns:
trueif the operation will restore snapshots, false otherwise
-
isEmpty
boolean isEmpty()
Checks whether the operation is empty.An empty operation, being executed, does nothing.
- Returns:
trueif the operation is empty,falseotherwise
-
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 benull, may be empty- Returns:
- a set of affected projects, never
null
-
-