Interface IBranchTransitionFilter

    • Method Detail

      • isSnapshotsCreationEnabled

        boolean isSnapshotsCreationEnabled​(org.eclipse.core.resources.IProject project,
                                           String fromBranch,
                                           String toBranch)
        Tests if snapshot creation is enabled for the given project and branch transition.
        Parameters:
        project - the project, never null
        fromBranch - the source branch, never null
        toBranch - the target branch, never null
        Returns:
        true if snapshot creation is enabled
      • isSnapshotsRestorationEnabled

        boolean isSnapshotsRestorationEnabled​(org.eclipse.core.resources.IProject project,
                                              String fromBranch,
                                              String toBranch)
        Tests if snapshot restoration is enabled for the given project and branch transition.
        Parameters:
        project - the project, never null
        fromBranch - the source branch, never null
        toBranch - the target branch, never null
        Returns:
        true if snapshot restoration is enabled
      • isSnapshotRestorationEverPossible

        boolean isSnapshotRestorationEverPossible​(org.eclipse.core.resources.IProject project,
                                                  String branch)
        Tests if restoration of a snapshot for the given project and branch may be required in future, provided the current settings.
        Parameters:
        project - the project, never null
        branch - the branch, never null
        Returns:
        true if snapshot restoration may be required, false otherwise