Example #1
0
        public bool LanguageSupportsOperation(string langName, RefactorOperations operation)
        {
            IRefactorer r = LanguageBindingService.GetRefactorerForLanguage(langName);

            if (r == null)
            {
                return(false);
            }
            return((r.SupportedOperations & operation) == operation);
        }
Example #2
0
        public IType CreateClass(Project project, string language, string directory, string namspace, CodeTypeDeclaration type)
        {
            ProjectDom        ctx  = ProjectDomService.GetProjectDom(project);
            RefactorerContext gctx = new RefactorerContext(ctx, fileProvider, null);
            IRefactorer       gen  = LanguageBindingService.GetRefactorerForLanguage(language);
            IType             c    = gen.CreateClass(gctx, directory, namspace, type);

            gctx.Save();
            return(c);
        }