public ProjectItemCodeModelNodeFactory(ProjectItem item) : base(item)
 {
     if (null != item.FileCodeModel)
     {
         _codeModelNodeFactory = new FileCodeModelNodeFactory(item.FileCodeModel);
     }
 }
        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());
        }