Search in sources :

Example 1 with ConfigureBranchesAction

use of org.jetbrains.idea.svn.branchConfig.ConfigureBranchesAction in project intellij-community by JetBrains.

the class SvnCommittedChangesProvider method createActions.

@Override
@NotNull
public VcsCommittedViewAuxiliary createActions(@NotNull DecoratorManager manager, @Nullable RepositoryLocation location) {
    RootsAndBranches rootsAndBranches = new RootsAndBranches(myVcs, manager, location);
    refreshMergeInfo(rootsAndBranches);
    DefaultActionGroup popup = new DefaultActionGroup(myVcs.getDisplayName(), true);
    popup.add(rootsAndBranches.getIntegrateAction());
    popup.add(rootsAndBranches.getUndoIntegrateAction());
    popup.add(new ConfigureBranchesAction());
    ShowHideMergePanelAction action = new ShowHideMergePanelAction(manager, rootsAndBranches.getStrategy());
    return new VcsCommittedViewAuxiliary(singletonList(popup), () -> {
        if (myMergeInfoUpdatesListener != null) {
            myMergeInfoUpdatesListener.removePanel(rootsAndBranches);
            rootsAndBranches.dispose();
        }
    }, singletonList(action));
}
Also used : ConfigureBranchesAction(org.jetbrains.idea.svn.branchConfig.ConfigureBranchesAction) VcsCommittedViewAuxiliary(com.intellij.openapi.vcs.changes.committed.VcsCommittedViewAuxiliary) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)1 VcsCommittedViewAuxiliary (com.intellij.openapi.vcs.changes.committed.VcsCommittedViewAuxiliary)1 NotNull (org.jetbrains.annotations.NotNull)1 ConfigureBranchesAction (org.jetbrains.idea.svn.branchConfig.ConfigureBranchesAction)1