VerticalPanel rulesPanel = new VerticalPanel();
if (ExplorerLayoutManager.shouldShow(Capabilities.SHOW_CREATE_NEW_ASSET)) {
rulesPanel.add(rulesToolBar);
}
TreePanel categoryTree = basicTreeStructure(ExplorerNodeConfig.getRulesStructure(), new TreePanelListenerAdapter() {
public void onClick(final TreeNode self, EventObject e) {
//this refreshes the list.
if (self.getAttribute("id").equals(ExplorerNodeConfig.CATEGORY_ID)) { //NON-NLS
self.getParentNode().replaceChild(ExplorerNodeConfig.getCategoriesStructure(), self);