mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 19:02:13 +07:00
IDEA-182879 vcs: move Collapse/Expand actions to the right in "Apply Patch" dialog
This commit is contained in:
+3
-4
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user