error.message.cannot.show.merge=Can't show merge
label.cant.show.diff.with.description=Can''t show diff: {0}
label.cant.show.merge.with.description=Can''t show merge: {0}
-action.Anonymous.text.change.diff.operation=Change diff operation
action.Anonymous.text.apply.non.conflicting.changes=Apply non-conflicting changes:
action.presentation.RefreshDirDiffAction.text=Refresh
continue.merge=Continue Merge
}
});
if (model.isOperationsEnabled()) {
- new DumbAwareAction(DiffBundle.messagePointer("action.Anonymous.text.change.diff.operation")) {
- @Override
- public void actionPerformed(@NotNull AnActionEvent e) {
- changeOperationForSelection();
- }
- }.registerCustomShortcutSet(CustomShortcutSet.fromString("SPACE"), myTable);
+ DumbAwareAction.create(e -> changeOperationForSelection())
+ .registerCustomShortcutSet(new CustomShortcutSet(KeyEvent.VK_SPACE), myTable);
new ClickListener() {
@Override
public boolean onClick(@NotNull MouseEvent e, int clickCount) {
sourcePanel.setBorder(JBUI.Borders.empty(0, 8));
targetPanel.setBorder(JBUI.Borders.empty(0, 8));
- GridBag gb = new GridBag();
+ GridBag gb = new GridBag().setDefaultFill(GridBagConstraints.HORIZONTAL).setDefaultWeightX(1);
JPanel headerPanel = new JPanel(new GridBagLayout());
headerPanel.add(myToolbarPanel, gb.nextLine().next().coverLine());
- headerPanel.add(sourcePanel, gb.next().fillCellHorizontally().weightx(1));
- headerPanel.add(targetPanel, gb.next().fillCellHorizontally().weightx(1));
+ headerPanel.add(sourcePanel, gb.nextLine().next());
+ headerPanel.add(targetPanel, gb.next());
Splitter tableSplitter = new OnePixelSplitter(true, SPLITTER_PROPORTION_KEY, 0.4f);
tableSplitter.setFirstComponent(JBUI.Panels.simplePanel(filesPanel)