void (Content[] contents) { if (contents.length == 0) return; myContext.saveUiState(); for (final Content each : contents) { myMinimizedContents.add(each); remove(each); saveState(each, true); boolean isShowing = myTabs.getComponent().getRootPane() != null; myContainer.minimize(each, new CellTransform.Restore() { @Override public ActionCallback restoreInGrid() { restore(each); return ActionCallback.DONE; } }); updateSelection(isShowing); } }