diff: ensure, that all init() duties are finished before first rediff()

This commit is contained in:
Aleksey Pivovarov
2015-04-27 13:55:57 +03:00
parent c673dfe240
commit 596c3b6e58
@@ -61,12 +61,13 @@ public abstract class DiffViewerBase implements DiffViewer, DataProvider {
@NotNull
public final FrameDiffTool.ToolbarComponents init() {
onInit();
rediff(true);
FrameDiffTool.ToolbarComponents components = new FrameDiffTool.ToolbarComponents();
components.toolbarActions = createToolbarActions();
components.popupActions = createPopupActions();
components.statusPanel = getStatusPanel();
rediff(true);
return components;
}