protected void setMenuEnableState() {
		DndTreeNode node = getSelectedNode();
		
		SqlToolkit.menuManager.setEnabled(this, MenuManager.POPUP_MENU, MENU_FOLDER_RENAME,
				(node != rootFolder  &&  node.getAllowsChildren()));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.POPUP_MENU, MENU_FOLDER_DELETE,
				(node != rootFolder  &&  node.getAllowsChildren()));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.POPUP_MENU, MENU_FOLDER_SORT,
				(node.getAllowsChildren()  &&  node.getChildCount() > 1));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.POPUP_MENU, MENU_ITEM_EDIT + itemName,
				(! node.getAllowsChildren()));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.POPUP_MENU, MENU_ITEM_DELETE + itemName,
				(! node.getAllowsChildren()));
		
		SqlToolkit.menuManager.setEnabled(this, MenuManager.MAIN_MENU_EDIT, MENU_FOLDER_RENAME,
				(node != rootFolder  &&  node.getAllowsChildren()));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.MAIN_MENU_EDIT, MENU_FOLDER_DELETE,
				(node != rootFolder  &&  node.getAllowsChildren()));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.MAIN_MENU_EDIT, MENU_FOLDER_SORT,
				(node.getAllowsChildren()  &&  node.getChildCount() > 1));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.MAIN_MENU_EDIT, MENU_ITEM_EDIT + itemName,
				(! node.getAllowsChildren()));
		SqlToolkit.menuManager.setEnabled(this, MenuManager.MAIN_MENU_EDIT, MENU_ITEM_DELETE + itemName,
				(! node.getAllowsChildren()));
	}