setTabPolicies(addedWindow);
}
private void setTabPolicies(final DockingWindow window) {
if(window instanceof TabWindow){
TabbedPanelProperties tabbedPanelProperties = ((TabWindow)window).getTabWindowProperties().getTabbedPanelProperties();
if(! tabbedPanelProperties.getTabLayoutPolicy().equals(TabLayoutPolicy.COMPRESSION))
tabbedPanelProperties.setTabLayoutPolicy(TabLayoutPolicy.COMPRESSION);
if(! tabbedPanelProperties.getTabDropDownListVisiblePolicy().equals(TabDropDownListVisiblePolicy.MORE_THAN_ONE_TAB))
tabbedPanelProperties.setTabDropDownListVisiblePolicy(TabDropDownListVisiblePolicy.MORE_THAN_ONE_TAB);
}
for(int i = 0; i < window.getChildWindowCount(); i++){
setTabPolicies(window.getChildWindow(i));
}
}