void (final boolean isShowing) { ContentManager contentManager = myContext.getContentManager(); if (contentManager.isDisposed()) return; for (Content each : myContents.getKeys()) { final TabInfo eachTab = getTabFor(each); boolean isSelected = eachTab != null && myTabs.getSelectedInfo() == eachTab; if (isSelected && isShowing) { contentManager.addSelectedContent(each); } else { contentManager.removeFromSelection(each); } } for (Content each : myMinimizedContents) { contentManager.removeFromSelection(each); } }