com.ibm.xtools.umldt.rt.api.egit.merge.impl

Class RTEGitUtilsImpl

    • Constructor Detail

      • RTEGitUtilsImpl

        public RTEGitUtilsImpl()
    • Method Detail

      • getConflictingFiles

        public File[] getConflictingFiles(org.eclipse.jgit.api.MergeResult mergeResult,
                                          String pattern)
        Description copied from interface: RTEGitUtils
        Returns all conflicting files from MergeResult of RTEGitMergeCommand that are matching the pattern.
        Specified by:
        getConflictingFiles in interface RTEGitUtils
        Parameters:
        mergeResult - MergeResult
        pattern - - Java regular expression defining pattern for files
        Returns:
        array of files
      • getRegisteredRepository

        public org.eclipse.jgit.lib.Repository getRegisteredRepository(File file)
        Description copied from interface: RTEGitUtils
        Returns Repository instance registered in EGit cache for given path
        Specified by:
        getRegisteredRepository in interface RTEGitUtils
        Parameters:
        file - - path to git repository
        Returns:
        - repository from EGit cache or null if this repository was not been added to EGit repository cache
      • getConflictingModels

        public File[] getConflictingModels(org.eclipse.jgit.lib.Repository rep)
        Description copied from interface: RTEGitUtils
        Returns all conflicting UML models from Git Repository
        Specified by:
        getConflictingModels in interface RTEGitUtils
        Parameters:
        rep - - Repository
        Returns:
        array of files
      • getConflictingTCs

        public File[] getConflictingTCs(org.eclipse.jgit.lib.Repository rep)
        Description copied from interface: RTEGitUtils
        Returns all conflicting TC files from Git Repository
        Specified by:
        getConflictingTCs in interface RTEGitUtils
        Parameters:
        rep - - Repository
        Returns:
        array of files
      • getConflictingFiles

        public File[] getConflictingFiles(org.eclipse.jgit.lib.Repository rep,
                                          String pattern)
        Description copied from interface: RTEGitUtils
        Returns all conflicting files from Git Repository that are matching the pattern
        Specified by:
        getConflictingFiles in interface RTEGitUtils
        Parameters:
        rep - - Repository
        pattern - - Java regular expression defining pattern for files
        Returns:
        array of files
      • getWorkspaceResources

        public org.eclipse.core.resources.IResource[] getWorkspaceResources(org.eclipse.jgit.lib.Repository repository,
                                                                            File[] files)
        Description copied from interface: RTEGitUtils
        Returns existing workspace resources matching files in git repository
        Specified by:
        getWorkspaceResources in interface RTEGitUtils
        Parameters:
        repository - - Repository
        files - - array of files in Git repository. File can have absolute or repository-relative path
        Returns:
        array of IResource
      • showRebaseResultDialog

        public void showRebaseResultDialog(org.eclipse.jgit.lib.Repository repository,
                                           org.eclipse.jgit.api.RebaseResult result)
        Description copied from interface: RTEGitUtils
        Show standard Rebase Result dialog.

        The operation can be used in RTEGitRebaseCommand completion callback to show result dialog.

        Specified by:
        showRebaseResultDialog in interface RTEGitUtils
        Parameters:
        repository - - Repository the current repository
        result - - RebaseResult result of rebase operation