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