~cszikszoy/do-plugins/fix-confluence

« back to all changes in this revision

Viewing changes to File/src/Do/Do.FilesAndFolders/FileItemSource.cs

  • Committer: Peng Deng
  • Date: 2009-06-17 01:07:23 UTC
  • Revision ID: dengpeng@gmail.com-20090617010723-wopvd2omtyp4rwfv
Clean up DiskMounter, make DiskItem using IUriItem interface, and let FileAndFolder support browsing IUriItem

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
                                yield return typeof (IFileItem);
72
72
                                yield return typeof (ITextItem);
73
73
                                yield return typeof (IApplicationItem);
 
74
                                yield return typeof (IUriItem);
74
75
                        }
75
76
                }
76
77
                
96
97
                                file = Plugin.NewFileItem ((item as ITextItem).Text);
97
98
                        else if (item is IFileItem)
98
99
                                file = item as IFileItem;
 
100
                        else if (item is IUriItem && (item as IUriItem).Uri.StartsWith ("file://"))
 
101
                                file = Plugin.NewFileItem ((item as IUriItem).Uri.Replace ("file://", ""));
99
102
                        else if (item is IApplicationItem)
100
103
                                return Enumerable.Empty<Item> ();
101
104