public bool CanWrite (object obj) { IWorkspaceFileObject wfo = obj as IWorkspaceFileObject; if (wfo != null && !wfo.SupportsFormat (this)) return false; return format.CanWriteFile (obj); }
public IEnumerable<string> GetCompatibilityWarnings (object obj) { IWorkspaceFileObject wfo = obj as IWorkspaceFileObject; if (wfo != null && !wfo.SupportsFormat (this)) { return new string[] {GettextCatalog.GetString ("The project '{0}' is not supported by {1}", wfo.Name, Name) }; } IEnumerable<string> res = format.GetCompatibilityWarnings (obj); return res ?? new string [0]; }