/// <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(); } } }