@Override protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) { initChangesTree(root); JPanel p = new JPanel(new BorderLayout()); myToolBar = ActionManager.getInstance().createActionToolbar(ActionPlaces.UNKNOWN, createChangesTreeActions(root), true); JPanel toolBarPanel = new JPanel(new BorderLayout()); toolBarPanel.add(myToolBar.getComponent(), BorderLayout.CENTER); if (showSearchField()) { SearchTextField search = createSearchBox(root); toolBarPanel.add(search, BorderLayout.EAST); traversalPolicy.exclude(search.getTextEditor()); } p.add(toolBarPanel, BorderLayout.NORTH); p.add(myChangesTree, BorderLayout.CENTER); return Pair.create((JComponent)p, toolBarPanel.getPreferredSize()); }
@Override protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) { myDiffPanel = DiffManager.getInstance().createDiffPanel(getFrame(), myProject, this, null); DiffPanelOptions o = ((DiffPanelEx)myDiffPanel).getOptions(); o.setRequestFocusOnNewContent(false); return Pair.create((JComponent)myDiffPanel.getComponent(), null); }
@Override protected Pair<JComponent, Dimension> createDiffPanel(JPanel root, ExcludingTraversalPolicy traversalPolicy) { myDiffPanel = DiffManager.getInstance().createRequestPanel(myProject, this, getFrame()); return Pair.create((JComponent)myDiffPanel.getComponent(), null); }