class AbstractSimpleWorkbenchPanelView extends AbstractDockingWorkbenchPanelView<P> {

    @Override
    public void addPart(final WorkbenchPartPresenter.View view) {
        if (listBar.getPartsSize() == 0) {
            listBar.addPart(view);
        } else {
            throw new RuntimeException("Uberfire Panel Invalid State: This panel support only one part.");
        }
    }

}