Example #1
0
        public override bool Initialize(IDataContext context)
        {
            _solution = context.GetData(JetBrains.ProjectModel.DataContext.DataConstants.SOLUTION);
            _page     = new AddDependencyPage(
                s => _parameterType = s,
                context.GetData(JetBrains.ProjectModel.DataContext.DataConstants.SOLUTION));
            var @class = GetClass(context);

            _class = @class.CreateElementPointer();
            var ctor = @class.Constructors.FirstOrDefault();

            if (ctor != null)
            {
                _ctor = ctor.CreateElementPointer();
            }
            return(true);
        }
 public override bool Initialize(IDataContext context)
 {
     _solution = context.GetData(JetBrains.ProjectModel.DataContext.DataConstants.SOLUTION);
     _page = new AddDependencyPage(
         s => _parameterType = s,
         context.GetData(JetBrains.ProjectModel.DataContext.DataConstants.SOLUTION));
     var @class = GetClass(context);
     _class = @class.CreateElementPointer();
     var ctor = @class.Constructors.FirstOrDefault();
     if (ctor != null)
         _ctor = ctor.CreateElementPointer();
     return true;
 }