class SimpleNoExpandWorkbenchPanelPresenter extends AbstractDockingWorkbenchPanelPresenter<SimpleNoExpandWorkbenchPanelPresenter> {

    @Override
    public void addPart(WorkbenchPartPresenter part) {
        SinglePartPanelHelper h = createSinglePartPanelHelper();
        if (h.hasNoParts()) {
            super.addPart(part);
        } else {
            h.closeFirstPartAndAddNewOne(() -> super.addPart(part));
        }
    }

    @Inject public  SimpleNoExpandWorkbenchPanelPresenter(@Named("SimpleNoExpandWorkbenchPanelView") final WorkbenchPanelView<SimpleNoExpandWorkbenchPanelPresenter> view,
                                                 final PerspectiveManager perspectiveManager,
                                                 final PlaceManager placeManager);

}