contentManagerUIListeners = new EventListenerList();
}
protected void addUIForContent(Content content) {
if (!showAlwaysTab && tabbedContentManager.getTabCount() == 0 && (contentValueAdjusting || toolWindowManager.getMainContent() == null)) {
detachedContentUIMap.put(content, new ContentPage(content, tabbedContentManager,
null, toolWindowManager.getResourceManager()));
toolWindowManager.setMainContent(content.getComponent());
lastSelected = (PlafContentUI) content;
} else {
if (!showAlwaysTab && tabbedContentManager.getParent() == null) {