/// <summary>
        /// find the tree node for the object to adjust text
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="newName"></param>
        public void OnComponentRename(object obj, string newName)
        {
            ObjectIDmap map = _loader.ObjectMap.GetMap(obj);

            if (map == null)
            {
                throw new DesignerException("object map not found for {0} when setting new name {1}", obj, newName);
            }
            IObjectPointer o    = DesignUtil.CreateObjectPointer(map, obj);
            TreeNodeObject node = _objExplorer.LocateNode(o) as TreeNodeObject;

            if (node != null)
            {
                node.ShowText();
            }
        }
        /// <summary>
        /// find the tree node for the object to adjust text
        /// </summary>
        /// <param name="obj"></param>
        /// <param name="newName"></param>
        public void OnComponentRename(object obj, string newName)
        {
            HtmlElement_ItemBase hei = obj as HtmlElement_ItemBase;

            if (hei != null)
            {
                _objExplorer.OnHtmlElementIdChanged(hei);
            }
            else
            {
                ObjectIDmap map = _loader.ObjectMap.GetMap(obj);
                if (map == null)
                {
                    map = _loader.ObjectMap;
                }
                IObjectPointer o    = DesignUtil.CreateObjectPointer(map, obj);
                TreeNodeObject node = _objExplorer.LocateNode(o) as TreeNodeObject;
                if (node != null)
                {
                    node.ShowText();
                }
            }
        }