class StaticWorkbenchPanelView extends AbstractWorkbenchPanelView<StaticWorkbenchPanelPresenter> {

    SelectionHandler<PartDefinition> getPanelSelectionHandler() {
        return event -> {
            final PartDefinition selectedItem = event.getSelectedItem();
            if (!Objects.equals(selectedItem, panelManager.getFocusedPart())) {
                panelManager.onPartLostFocus();
                panelManager.onPartFocus(selectedItem);
            }
        };
    }

}