updateViewAsMenu();
The updateViewAsMenu method refreshes properties of the Show As button in the workbook ribbon.
The example of use is given on the page with description of the WbkCategoryView.getViewAsButton method.
See also:
WbkCategoryView