IDEA-182879 vcs: move Collapse/Expand actions to the right in "Apply Patch" dialog

This commit is contained in:
Aleksey Pivovarov
2018-05-01 15:00:19 +03:00
parent 68ac07b455
commit 6f859ae04d
@@ -507,14 +507,12 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper {
final GridBagConstraints gb = createConstraints();
final DefaultActionGroup group = new DefaultActionGroup();
final AnAction[] treeActions = myChangesTreeList.getTreeActions();
group.addAll(treeActions);
group.add(new MapDirectory());
final MyShowDiff diffAction = new MyShowDiff();
diffAction.registerCustomShortcutSet(CommonShortcuts.getDiff(), getRootPane());
group.add(diffAction);
group.add(new MapDirectory());
group.add(new StripUp());
group.add(new StripDown());
group.add(new ResetStrip());
@@ -529,8 +527,9 @@ public class ApplyPatchDifferentiatedDialog extends DialogWrapper {
}
final ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar("APPLY_PATCH", group, true);
TreeActionsToolbarPanel toolbarPanel = new TreeActionsToolbarPanel(toolbar, myChangesTreeList);
gb.fill = GridBagConstraints.HORIZONTAL;
treePanel.add(toolbar.getComponent(), gb);
treePanel.add(toolbarPanel, gb);
++gb.gridy;
gb.weighty = 1;