public NRefactoryCodeActionProvider(CodeActionProvider provider, ContextActionAttribute attr)
 {
     if (provider == null)
     {
         throw new ArgumentNullException("provider");
     }
     if (attr == null)
     {
         throw new ArgumentNullException("attr");
     }
     this.provider = provider;
     Title         = GettextCatalog.GetString(attr.Title ?? "");
     Description   = GettextCatalog.GetString(attr.Description ?? "");
     Category      = GettextCatalog.GetString(attr.Category ?? "");
     MimeType      = "text/x-csharp";
 }
Exemple #2
0
 public NRefactoryCodeActionProvider(ICodeActionProvider provider, ContextActionAttribute attr)
 {
     if (provider == null)
     {
         throw new System.ArgumentNullException("provider");
     }
     if (attr == null)
     {
         throw new System.ArgumentNullException("attr");
     }
     this.provider = provider;
     Title         = GettextCatalog.GetString(attr.Title ?? "");
     Description   = GettextCatalog.GetString(attr.Description ?? "");
     Category      = GettextCatalog.GetString(attr.Category ?? "");
     MimeType      = "text/x-playscript";
     BoundToIssue  = attr.BoundToIssue;
 }
Exemple #3
0
 public AlContextActionProviderWrapper(ContextActionAttribute attribute, Type type)
 {
     this.attribute = attribute;
     this.type      = type;
 }