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, showMergeDialogprotected 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 AbstractVcsHelperpublic void showFileHistory(VcsHistoryProvider historyProvider, AnnotationProvider annotationProvider, FilePath path, AbstractVcs vcs)
showFileHistory in class AbstractVcsHelperpublic 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 AbstractVcsHelperpublic 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 AbstractVcsHelperpublic 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 AbstractVcsHelperpublic void showErrors(java.util.List<? extends VcsException> abstractVcsExceptions, java.lang.String tabDisplayName)
showErrors in class AbstractVcsHelperpublic boolean commitChanges(java.util.Collection<? extends Change> changes, LocalChangeList initialChangeList, java.lang.String commitMessage, CommitResultHandler customResultHandler)
AbstractVcsHelperShows 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 AbstractVcsHelperpublic boolean handleCustom(VcsException exception)
public void showErrors(java.util.Map<HotfixData,java.util.List<VcsException>> exceptionGroups, java.lang.String tabDisplayName)
showErrors in class AbstractVcsHelperpublic java.util.List<VcsException> runTransactionRunnable(AbstractVcs vcs, TransactionRunnable runnable, java.lang.Object vcsParameters)
AbstractVcsHelperrunTransactionRunnable in class AbstractVcsHelperpublic void showAnnotation(FileAnnotation annotation, VirtualFile file, AbstractVcs vcs)
showAnnotation in class AbstractVcsHelperpublic void showAnnotation(FileAnnotation annotation, VirtualFile file, AbstractVcs vcs, int line)
showAnnotation in class AbstractVcsHelperpublic void showChangesListBrowser(CommittedChangeList changelist, java.lang.String title)
showChangesListBrowser in class AbstractVcsHelperpublic void showWhatDiffersBrowser(java.util.Collection<Change> changes, java.lang.String title)
showWhatDiffersBrowser in class AbstractVcsHelperpublic java.util.List<VirtualFile> showMergeDialog(java.util.List<? extends VirtualFile> files, MergeProvider provider, MergeDialogCustomizer mergeDialogCustomizer)
AbstractVcsHelpershowMergeDialog in class AbstractVcsHelperfiles - 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 AbstractVcsHelperpublic void openCommittedChangesTab(CommittedChangesProvider provider, RepositoryLocation location, ChangeBrowserSettings settings, int maxCount, java.lang.String title)
openCommittedChangesTab in class AbstractVcsHelperpublic void loadAndShowCommittedChangesDetails(Project project, VcsRevisionNumber revision, VirtualFile virtualFile, VcsKey vcsKey, RepositoryLocation location, boolean isNonLocal)
loadAndShowCommittedChangesDetails in class AbstractVcsHelperpublic static void loadAndShowCommittedChangesDetails(Project project, VcsRevisionNumber revision, FilePath filePath, AbstractVcsHelperImpl.CommittedChangeListProvider changelistProvider)
public static CommittedChangeList getRemoteList(CommittedChangesProvider provider, VcsRevisionNumber revision, VirtualFile nonLocal) throws VcsException
VcsExceptionpublic static void setCustomExceptionHandler(Project project, Consumer<VcsException> customHandler)