public override IEnumerable <INodeFactory> GetNodeChildren(IContext context) { INodeFactory factory = FileCodeModelNodeFactory.CreateNodeFactoryFromCurrentSelection(_dte, _codeElementType); if (null == factory) { return(null); } factory = new RenamedNodeFactoryDecorator(factory, _name); return(factory.GetNodeChildren(context)); }
public override IPathNode GetNodeValue() { INodeFactory factory = FileCodeModelNodeFactory.CreateNodeFactoryFromCurrentSelection(_dte, _codeElementType); if (null == factory) { return(null); } factory = new RenamedNodeFactoryDecorator(factory, _name); return(factory.GetNodeValue()); }