code: public void initialize(CmsResourceCategoryInfo categoryInfo) {
  
          m_initializing = false;
          m_initialized = true;
          m_main.add(new CmsListItemWidget(categoryInfo.getResourceInfo()));
          m_categoryTree = new CmsCategoryTree(
              categoryInfo.getCurrentCategories(),
              300,
              false,
              categoryInfo.getCategoryTree(),
              m_collapsed);
          m_categoryTree.addValueChangeHandler(new ValueChangeHandler<List<String>>() {
  
              public void onValueChange(ValueChangeEvent<List<String>> event) {
  
                  setChanged();
              }
          });
          m_main.add(m_categoryTree);
          m_categoryTree.truncate("CATEGORIES", WIDE_WIDTH - 20);
          LockIcon lock = categoryInfo.getResourceInfo().getLockIcon();
          if ((lock == null)
              || lock.equals(LockIcon.NONE)
              || lock.equals(LockIcon.OPEN)
              || lock.equals(LockIcon.SHARED_OPEN)) {
              m_saveButton.disable(Messages.get().key(Messages.GUI_NOTHING_CHANGED_0));
          } else {
              m_categoryTree.disable(Messages.get().key(Messages.GUI_RESOURCE_LOCKED_0));
              m_saveButton.disable(Messages.get().key(Messages.GUI_RESOURCE_LOCKED_0));
          }
          setWidth(WIDE_WIDTH);
          if (isShowing()) {
              center();
          }
      }
docs: Initializes the dialog content.<p>
  
  @param categoryInfo the resource category info