private void updateBottomActions() { myBottomActions = new BottomActions(); myBottomActions.applyLeft = myViewer.getResolveAction(MergeResult.LEFT); myBottomActions.applyRight = myViewer.getResolveAction(MergeResult.RIGHT); myBottomActions.resolveAction = myViewer.getResolveAction(MergeResult.RESOLVED); myBottomActions.cancelAction = myViewer.getResolveAction(MergeResult.CANCEL); }
@CalledInAwt private void initViewer() { myContentPanel.setContent(myViewer.getComponent()); MergeTool.ToolbarComponents toolbarComponents = myViewer.init(); buildToolbar(toolbarComponents.toolbarActions); myToolbarStatusPanel.setContent(toolbarComponents.statusPanel); myCloseHandler = toolbarComponents.closeHandler; }
@Nullable public JComponent getPreferredFocusedComponent() { JComponent component = myViewer.getPreferredFocusedComponent(); return component != null ? component : myToolbarPanel.getTargetComponent(); }