public class AbstractVcsHelperImpl extends AbstractVcsHelper
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractVcsHelperImpl.CommittedChangeListProvider |
myProject
Modifier | Constructor and Description |
---|---|
protected |
AbstractVcsHelperImpl(Project project) |
Modifier and Type | Method and Description |
---|---|
boolean |
commitChanges(java.util.Collection<? extends Change> changes,
LocalChangeList initialChangeList,
java.lang.String commitMessage,
CommitResultHandler customResultHandler)
Shows commit dialog, fills it with the given changes and given commit message, initially selects the given changelist.
|
static CommittedChangeList |
getRemoteList(CommittedChangesProvider provider,
VcsRevisionNumber revision,
VirtualFile nonLocal) |
boolean |
handleCustom(VcsException exception) |
static void |
loadAndShowCommittedChangesDetails(Project project,
VcsRevisionNumber revision,
FilePath filePath,
AbstractVcsHelperImpl.CommittedChangeListProvider changelistProvider) |
void |
loadAndShowCommittedChangesDetails(Project project,
VcsRevisionNumber revision,
VirtualFile virtualFile,
VcsKey vcsKey,
RepositoryLocation location,
boolean isNonLocal) |
void |
openCommittedChangesTab(CommittedChangesProvider provider,
RepositoryLocation location,
ChangeBrowserSettings settings,
int maxCount,
java.lang.String title) |
void |
openMessagesView(com.intellij.openapi.vcs.impl.VcsErrorViewPanel errorTreeView,
java.lang.String tabDisplayName) |
java.util.List<VcsException> |
runTransactionRunnable(AbstractVcs vcs,
TransactionRunnable runnable,
java.lang.Object vcsParameters)
Runs the runnable inside the vcs transaction (if needed), collects all exceptions, commits/rollbacks transaction
and returns all exceptions together.
|
java.util.Collection<FilePath> |
selectFilePathsToProcess(java.util.List<? extends FilePath> files,
java.lang.String title,
java.lang.String prompt,
java.lang.String singleFileTitle,
java.lang.String singleFilePromptTemplate,
VcsShowConfirmationOption confirmationOption) |
java.util.Collection<FilePath> |
selectFilePathsToProcess(java.util.List<? extends FilePath> files,
java.lang.String title,
java.lang.String prompt,
java.lang.String singleFileTitle,
java.lang.String singleFilePromptTemplate,
VcsShowConfirmationOption confirmationOption,
java.lang.String okActionName,
java.lang.String cancelActionName) |
java.util.Collection<VirtualFile> |
selectFilesToProcess(java.util.List<? extends VirtualFile> files,
java.lang.String title,
java.lang.String prompt,
java.lang.String singleFileTitle,
java.lang.String singleFilePromptTemplate,
VcsShowConfirmationOption confirmationOption) |
static void |
setCustomExceptionHandler(Project project,
Consumer<VcsException> customHandler) |
void |
showAnnotation(FileAnnotation annotation,
VirtualFile file,
AbstractVcs vcs) |
void |
showAnnotation(FileAnnotation annotation,
VirtualFile file,
AbstractVcs vcs,
int line) |
void |
showChangesListBrowser(CommittedChangeList changelist,
java.lang.String title) |
void |
showCommittedChangesBrowser(CommittedChangesProvider provider,
RepositoryLocation location,
java.lang.String title,
java.awt.Component parent) |
void |
showErrors(java.util.List<? extends VcsException> abstractVcsExceptions,
java.lang.String tabDisplayName) |
void |
showErrors(java.util.Map<HotfixData,java.util.List<VcsException>> exceptionGroups,
java.lang.String tabDisplayName) |
void |
showFileHistory(VcsHistoryProvider historyProvider,
AnnotationProvider annotationProvider,
FilePath path,
AbstractVcs vcs) |
void |
showFileHistory(VcsHistoryProviderEx historyProvider,
FilePath path,
AbstractVcs vcs,
VcsRevisionNumber startingRevisionNumber) |
void |
showFileHistory(VcsHistoryProvider historyProvider,
FilePath path,
AbstractVcs vcs) |
java.util.List<VirtualFile> |
showMergeDialog(java.util.List<? extends VirtualFile> files,
MergeProvider provider,
MergeDialogCustomizer mergeDialogCustomizer)
Shows the multiple file merge dialog for resolving conflicts in the specified set of virtual files.
|
void |
showWhatDiffersBrowser(java.util.Collection<Change> changes,
java.lang.String title) |
getInstance, showError, showMergeDialog, showMergeDialog
protected AbstractVcsHelperImpl(Project project)
public void openMessagesView(com.intellij.openapi.vcs.impl.VcsErrorViewPanel errorTreeView, java.lang.String tabDisplayName)
public void showFileHistory(VcsHistoryProvider historyProvider, FilePath path, AbstractVcs vcs)
showFileHistory
in class AbstractVcsHelper
public void showFileHistory(VcsHistoryProvider historyProvider, AnnotationProvider annotationProvider, FilePath path, AbstractVcs vcs)
showFileHistory
in class AbstractVcsHelper
public void showFileHistory(VcsHistoryProviderEx historyProvider, FilePath path, AbstractVcs vcs, VcsRevisionNumber startingRevisionNumber)
public java.util.Collection<VirtualFile> selectFilesToProcess(java.util.List<? extends VirtualFile> files, java.lang.String title, java.lang.String prompt, java.lang.String singleFileTitle, java.lang.String singleFilePromptTemplate, VcsShowConfirmationOption confirmationOption)
selectFilesToProcess
in class AbstractVcsHelper
public java.util.Collection<FilePath> selectFilePathsToProcess(java.util.List<? extends FilePath> files, java.lang.String title, java.lang.String prompt, java.lang.String singleFileTitle, java.lang.String singleFilePromptTemplate, VcsShowConfirmationOption confirmationOption, java.lang.String okActionName, java.lang.String cancelActionName)
selectFilePathsToProcess
in class AbstractVcsHelper
public java.util.Collection<FilePath> selectFilePathsToProcess(java.util.List<? extends FilePath> files, java.lang.String title, java.lang.String prompt, java.lang.String singleFileTitle, java.lang.String singleFilePromptTemplate, VcsShowConfirmationOption confirmationOption)
selectFilePathsToProcess
in class AbstractVcsHelper
public void showErrors(java.util.List<? extends VcsException> abstractVcsExceptions, java.lang.String tabDisplayName)
showErrors
in class AbstractVcsHelper
public boolean commitChanges(java.util.Collection<? extends Change> changes, LocalChangeList initialChangeList, java.lang.String commitMessage, CommitResultHandler customResultHandler)
AbstractVcsHelper
Shows commit dialog, fills it with the given changes and given commit message, initially selects the given changelist.
Note that the method is asynchronous: it returns right after user presses "Commit" or "Cancel" and after all pre-commit handlers
have been called. It doesn't wait for commit itself to succeed or fail - for this use the customResultHandler
.
commitChanges
in class AbstractVcsHelper
public boolean handleCustom(VcsException exception)
public void showErrors(java.util.Map<HotfixData,java.util.List<VcsException>> exceptionGroups, java.lang.String tabDisplayName)
showErrors
in class AbstractVcsHelper
public java.util.List<VcsException> runTransactionRunnable(AbstractVcs vcs, TransactionRunnable runnable, java.lang.Object vcsParameters)
AbstractVcsHelper
runTransactionRunnable
in class AbstractVcsHelper
public void showAnnotation(FileAnnotation annotation, VirtualFile file, AbstractVcs vcs)
showAnnotation
in class AbstractVcsHelper
public void showAnnotation(FileAnnotation annotation, VirtualFile file, AbstractVcs vcs, int line)
showAnnotation
in class AbstractVcsHelper
public void showChangesListBrowser(CommittedChangeList changelist, java.lang.String title)
showChangesListBrowser
in class AbstractVcsHelper
public void showWhatDiffersBrowser(java.util.Collection<Change> changes, java.lang.String title)
showWhatDiffersBrowser
in class AbstractVcsHelper
public java.util.List<VirtualFile> showMergeDialog(java.util.List<? extends VirtualFile> files, MergeProvider provider, MergeDialogCustomizer mergeDialogCustomizer)
AbstractVcsHelper
showMergeDialog
in class AbstractVcsHelper
files
- the files to show in the merge dialog.provider
- MergeProvider to be used for merging.mergeDialogCustomizer
- custom container of titles, descriptions and messages for the merge dialog.public void showCommittedChangesBrowser(CommittedChangesProvider provider, RepositoryLocation location, java.lang.String title, java.awt.Component parent)
showCommittedChangesBrowser
in class AbstractVcsHelper
public void openCommittedChangesTab(CommittedChangesProvider provider, RepositoryLocation location, ChangeBrowserSettings settings, int maxCount, java.lang.String title)
openCommittedChangesTab
in class AbstractVcsHelper
public void loadAndShowCommittedChangesDetails(Project project, VcsRevisionNumber revision, VirtualFile virtualFile, VcsKey vcsKey, RepositoryLocation location, boolean isNonLocal)
loadAndShowCommittedChangesDetails
in class AbstractVcsHelper
public static void loadAndShowCommittedChangesDetails(Project project, VcsRevisionNumber revision, FilePath filePath, AbstractVcsHelperImpl.CommittedChangeListProvider changelistProvider)
public static CommittedChangeList getRemoteList(CommittedChangesProvider provider, VcsRevisionNumber revision, VirtualFile nonLocal) throws VcsException
VcsException
public static void setCustomExceptionHandler(Project project, Consumer<VcsException> customHandler)