BorderLayoutBuilder p = new BorderLayoutBuilder().setOpaque(false);
JButton loadSource = createLoadSourceButton();
JComponent toolbar = createToolbar(toggleSourceTreeExpansionButton, sourceSearchButton,
sourceTransferButton, loadSource);
p.north(toolbar).center(sourceTree.m_scroll);
p.decorate(canvas);
}
private JButton createLoadSourceButton() {
Action action = sourceTree.getLoadSourceDataAction();
return (action == null) ? null : new KongaButton(action);