예제 #1
0
        private BulbItem CreateBulbItem(string classname, string relativeNamespace, IProject project,
                                        string templateName, string codeFileToCreateName)
        {
            var DTO = new CreateClassRequestMessage
            {
                Classname = classname,
                Namespace = relativeNamespace,
                Project   = project,
                Template  = templateName
            };
            string QuickFixText = string.Format("Create {0} in {1}", codeFileToCreateName, project.Name);

            return(new BulbItem(QuickFixText, new CreateClassAction(DTO)));
        }
 public CreateClassAction(CreateClassRequestMessage createClassRequestMessage)
 {
     _createClassRequestMessage = createClassRequestMessage;
 }