示例#1
0
 public bool CanWrite (object obj)
 {
     IWorkspaceFileObject wfo = obj as IWorkspaceFileObject;
     if (wfo != null && !wfo.SupportsFormat (this))
         return false;
     return format.CanWriteFile (obj);
 }
示例#2
0
 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];
 }