code: public void openCategories(CmsResource resource) {
  
          getRpcProxy(I_CmsGwtDialogClientRpc.class).openCategoriesDialog(
              resource.getStructureId().toString(),
              OpenCms.getWorkplaceManager().isDisplayCategorySelectionCollapsed());
      }
docs: Opens the categories dialog for the given resource.<p>
  
  @param resource the resource