showNoTabsComponent();
if (closeAfter) {
makeUnavailableLater();
}
}
<BUG>}
});</BUG>
}
});
}

showNoTabsComponent();
setAvailable(false);
getContentManager().addContentManagerListener(new ContentManagerAdapter() {
public void contentRemoved(ContentManagerEvent event) {
boolean closeAfter = event.getContent().getComponent() == myNoTabsComponent;
if (getContentManager().getContentCount() == 0) {
showNoTabsComponent();
if (closeAfter) {
makeUnavailableLater();
}
}
}
});
}
