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-csharp"; }
public CSharpContextActionProviderWrapper(ContextActionAttribute attribute, Type type) { this.attribute = attribute; this.type = type; }