}
});
desktopPanel.add(desktopPane, BorderLayout.CENTER);
// Tool panel.
ToolPanelLocation toolPanelLocation = getToolPanelLocation();
toolPanel = new ToolPanel(this);
switch (toolPanelLocation) {
case DOCKED_LEFT:
desktopPanel.add(toolPanel, BorderLayout.WEST);
break;