this.loadContent();
}
private void addKBasePainel(final ServiceKBaseConfig kbase, final ClientFactory clientFactory) {
final ClosableLabel closableLabel = new ClosableLabel(kbase.getName());
final UpdateTabEvent updateTabEvent = new UpdateTabEvent() {
public void onUpdate(String newName) {
closableLabel.updateTitle(newName);
}
};
tabPanel.add(new KBaseConfigPanel(config, kbase, updateTabEvent, asset.getMetaData().getModuleUUID(), asset.getMetaData().getModuleName(), clientFactory), closableLabel);
closableLabel.addCloseHandler(new CloseHandler<ClosableLabel>() {
public void onClose(CloseEvent<ClosableLabel> closableLabelCloseEvent) {
if (tabPanel.getWidgetCount() <= 2) {
Window.alert(Constants.INSTANCE.CantDeleteKBase());
return;
}